Link to home
Start Free TrialLog in
Avatar of Bitlab
BitlabFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bitlab

ASKER

Thank you.