Bitlab
asked on
Function expression.
Hello experts.
In which version is the following code LEGAL if in any?
<?php
$f=function (){echo 'works, but what?...';};
$f();
echo 'end';
/*
Note, we don't ask works this code or not, it works in php 5.3.2 for example. Does not work in 5.1.6.
Note, we need some prove like reference to documentation, or to cow path in solid php packages.
"Cow path" by definition is a practice of multiple programmers which is impossible to neglect by language developers.
*/
Thank you.
In which version is the following code LEGAL if in any?
<?php
$f=function (){echo 'works, but what?...';};
$f();
echo 'end';
/*
Note, we don't ask works this code or not, it works in php 5.3.2 for example. Does not work in 5.1.6.
Note, we need some prove like reference to documentation, or to cow path in solid php packages.
"Cow path" by definition is a practice of multiple programmers which is impossible to neglect by language developers.
*/
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER