PHP code example of mathiasverraes / classfunctions
1. Go to this page and download the library: Download mathiasverraes/classfunctions library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mathiasverraes / classfunctions example snippets
use Verraes\ClassFunctions;
// Fully qualified class name of an object, without a leading backslash
ClassFunctions\fqcn($object);
// Canonical class name of an object, of the form "My.Namespace.MyClass"
ClassFunctions\canonical($object);
// Underscored and lowercased class name of an object, of the form "my.namespace.my_class"
ClassFunctions\underscore($object);
// The class name of an object, without the namespace
ClassFunctions\short($object);
// Returns an associative array of 'CONSTANT_NAME' => 'value'
ClassFunctions\constants('Verraes\ClassFunctions\Tests\MyClass')