Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
/**
* Тестовое действие
* @a /^[0-9]+$/i
* @b /^[0-9a-z]+$/i
* @var a int
* @var b string
*/
$method->getDocComment();/**
* @a /^[0-9]+$/i
*/
function do($fileName) {
file_put_contents($fileName, 'somthing');
}
$arr = CheckURLValid('Controller', 'testAction', $_GET);
call_user_func_array(array('Controller', 'testAction'), $arr);
$time = microtime(true);
function index ( $a ) { return $a; }
$a = 'some interesting string';
//Версия №1
echo index( $a );
//Версия №2
echo call_user_func_array( 'index', array( $a ) );
echo number_format( (microtime(true) - $time), 10, '.', '' );
Возможности PHP Reflection