Function expression.

Bitlab
Bitlab used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

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

Author

Commented:
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