troubleshooting Question

Function expression.

Avatar of Bitlab
BitlabFlag for United States of America asked on
PHP
2 Comments1 Solution178 ViewsLast Modified:
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
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros