Hello all,
I was playing with create_function the other day and found that it is not
possible to use create_function to create a method for an object. Code example:
test = create_function( '', 'echo "Testing";' );
$o->test(); // Will break:
// Fatal error: Call to undefined function:
On Thu, 23 Dec 2004 15:57:08 -0600, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> but I did not see anything in the manual that explicitly states that this will
> not work.
create_function -- Create an anonymous (lambda-style) function
The keyword here is anonymous, as in 'not named'. The anony
2 matches
Mail list logo