This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".  
Status: 2025-11-02

functions


ct()

returns time passed from start until calling this method.
see Debug::constructionTime()


dct()

displays the time passed from start until calling this method.


display()

shorthand for Debug::display() on userland.

see Debug::display()


get()

simplifies the use of variables. If a variable does not exist, null or a defined value is returned.

usually

$mValue = (isset($aData['foo']['bar'])) ? $aData['foo']['bar'] : null;
// or
$mValue = ($aData['foo']['bar'] ?? null);

way with get()

$mValue = get($aData['foo']['bar']);

info()

shorthand for Debug::info() on userland.

see Debug::info()


mvcStoreEnv()

reads environment key/values from a given file and stores them via putenv so that they will be accessible via getenv().


mvcConfigLoader()

loads all available configs.

see also Config files, -places and reading order


phpinfo_array

returns an assoc array based on phpinfo information.
Alle keys are CASE_LOWER for easier access.

\phpinfo_array();

Example

dump(
    phpinfo_array()
);
 array:69 [▼
  "general" => array:26 [▶]
  "apcu" => array:21 [▶]
  "bcmath" => array:2 [▶]
  "bz2" => array:4 [▶]
  "calendar" => array:1 [▶]
  "cgi-fcgi" => array:10 [▶]
  "core" => array:96 [▶]
  "ctype" => array:1 [▶]
  "curl" => array:38 [▶]
  "date" => array:10 [▶]
  "dom" => array:8 [▶]
  "exif" => array:11 [▶]
  "ffi" => array:3 [▶]
  "fileinfo" => array:2 [▶]
  "filter" => array:3 [▶]
  "ftp" => array:2 [▶]
  "gd" => array:17 [▶]
  "gettext" => array:1 [▶]
  "hash" => array:4 [▶]
  "iconv" => array:6 [▶]
  "igbinary" => array:5 [▶]
  "imagick" => array:14 [▶]
  "intl" => array:8 [▶]
  "json" => array:1 [▶]
  "ldap" => array:7 [▶]
  "libxml" => array:4 [▶]
  "mbstring" => array:17 [▶]
  "memcached" => array:37 [▶]
  "msgpack" => array:10 [▶]
  "mysqli" => array:16 [▶]
  "mysqlnd" => array:13 [▶]
  "openssl" => array:6 [▶]
  "pcre" => array:8 [▶]
  "pdo" => array:2 [▶]
  "pdo_mysql" => array:3 [▶]
  "pdo_pgsql" => array:2 [▶]
  "pdo_sqlite" => array:2 [▶]
  "pgsql" => array:11 [▶]
  "phar" => array:11 [▶]
  "posix" => array:1 [▶]
  "random" => array:1 [▶]
  "readline" => array:4 [▶]
  "redis" => array:38 [▶]
  "reflection" => array:1 [▶]
  "session" => array:33 [▶]
  "shmop" => array:1 [▶]
  "simplexml" => array:2 [▶]
  "soap" => array:7 [▶]
  "sockets" => array:1 [▶]
  "sodium" => array:3 [▶]
  "spl" => array:3 [▶]
  "sqlite3" => array:4 [▶]
  "standard" => array:16 [▶]
  "sysvmsg" => array:1 [▶]
  "sysvsem" => array:1 [▶]
  "sysvshm" => array:1 [▶]
  "tokenizer" => array:1 [▶]
  "uploadprogress" => array:4 [▶]
  "xml" => array:3 [▶]
  "xmlreader" => array:1 [▶]
  "xmlrpc" => array:5 [▶]
  "xmlwriter" => array:1 [▶]
  "xsl" => array:5 [▶]
  "yaml" => array:9 [▶]
  "zend opcache" => array:76 [▶]
  "zip" => array:9 [▶]
  "zlib" => array:8 [▶]
  "environment" => array:103 [▶]
  "php variables" => array:367 [▶]
]

Example: requesting xml Infos

$sVersion = phpinfo_array()['xml']
 array:3 [▼
  "xml support" => "active"
  "xml namespace support" => "active"
  "libxml2 version" => "2.9.14"
]

pr()

dumps data using print_r.

Example

pr(get_include_path(), ':');

stop()

shorthand for Debug::stop() on userland.

see Debug::stop()


whereis()

locates source/binary for a specified file.

Example

$sGrep = whereis('grep');

$sGrep

// type: string
'/usr/bin/grep'