Posted by Ivαn Sαnchez Ortega on 02/16/06 01:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bart the bear wrote:
> Speaking of this, is there any chance of references to functions in
> PHP?
Aside from lambda-style functions (see create_function()), you can reference
a function by its name:
<?php
function foo()
{
echo "wow!";
}
$bar = 'foo';
$bar();
?>
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
No intentes doblar la cuchara, eso es imposible; simplemente intenta
comprender la verdad: que no hay cuchara
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD87xl3jcQ2mg3Pc8RAr+qAJ4lnXEtiyUKXV3lOcxBTPw+Ci/zggCfUnw/
9qdZI2sdFjJ9lNOx5CcrFAY=
=PhXF
-----END PGP SIGNATURE-----
[Back to original message]
|