PHP 8.5.0 Beta 1 available for testing

Voting

: zero plus one?
(Example: nine)

The Note You're Voting On

Anonymous
9 years ago
<?php
// Create an instance of the ReflectionProperty class
$ext= new ReflectionExtension('standard');

// Print out basic information
printf(
"Name : %s\n".
"Version : %s\n".
"Functions : [%d] %s\n".
"Constants : [%d] %s\n".
"INI entries : [%d] %s\n",
$ext->getName(),
$ext->getVersion() ? $ext->getVersion() : 'NO_VERSION',
sizeof($ext->getFunctions()),
var_export($ext->getFunctions(), 1),
sizeof($ext->getConstants()),
var_export($ext->getConstants(), 1),
sizeof($ext->getINIEntries()),
var_export($ext->getINIEntries(), 1)
);
?>

<< Back to user notes page

To Top