Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

PHP is awesome

Name: Anonymous 2007-08-28 17:56 ID:xY3vpdBA

This is how you create a anonymous function in PHP:

$newfunc = create_function('$a,$b', 'return "ln($a) + ln($b) = " . log($a * $b);');


Name: Anonymous 2007-08-30 10:38 ID:Heaven

>>25
Yay! Now I can call one lambda inside another.

But it is still slower than ssslllooowww, and still insecure as hell. And too many lambdas will still fuck my system.

Oops.

Name: Anonymous 2007-08-30 10:40 ID:Heaven

>>25
Great! Ignoring the gaping security holes of create_function (wait, PHP is a gaping security hole), ssssslllow speed, and the chance to completely fuck your system if you make too many lambdas (seen it happen), we can now call a lambda inside a lambda.

Use create_function at your own risk.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List