Function expression.

Bitlab used Ask the Experts™
Hello experts.

In which version is the following code LEGAL if in any?

$f=function (){echo 'works, but what?...';};

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.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2007


Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial