Re: performance improvement using include(), possible to cache included code?

From: Date: Tue, 13 Jun 2000 17:41:18 +0000
Subject: Re: performance improvement using include(), possible to cache included code?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21225@lists.php.net to get a copy of this message
w>> I wondered what create_function() is for in the lambda-war two weeks ago w>> or so... I did not find any doc on how to use it and the code snipplet w>> provided two weeks ago or so was not very clear. w>> w>> Could you tell me where to search for documentation on how to use it. Well, I'm not sure there's any as of yet. Basically, you do: $body = 'if($a == 0) { print "zero"; } else { print "not zero"; }" $args = '$a'; $zerochecker = create_function($args,$body); $zerochecker($foo); -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#21225) next »