devskyfly/php56

Represent core php function and constants by namespaces and classes like static members.

v1.1.4 2020-05-01 20:02 UTC

This package is auto-updated.

Last update: 2024-11-29 05:56:44 UTC


README

By historical reasons in PHP there is a big problem with functions naming. It's hard to remember functions names.

So, i try to structure functions and constants by related classes and namespaces.

N.B I tried ... :) But it is impossible to redeclarate following items:

Functions

  • isset() //check variable definition in local scope
  • unset() //delete variable link name in local scope
  • get_defined_vars() //get all defined variables
  • func_get_arg() //return function param by index
  • func_get_args() //return function params by array
  • func_num_args() //return number of params passed to a function

Constants

  • _LINE_ //current executing file line
  • _FILE_ //current executing file
  • _DIR_ //current executing file dir
  • _FUNCTION_ //current executing function
  • _CLASS_ //current executing class (full - with namespace)
  • _TRAIT_ //current executing trait (full - with namespace)
  • _METHOD_ //current executing methode (full - with namespace)
  • _NAMESPACE_ //current executing namespace

Because theare results and values depends on its location.