php-general | 2001072
Date: 07/31/01
- Next message: Philip Olson: "Re: [PHP] references... found it"
- Previous message: Kyle Smith: "[PHP] Flash question, but includes variables!"
- In reply to: scott [gts]: "[PHP] references"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
scott [gts] wrote:
> i've been reading over the docs on references, and i
> can't see anyway to pass around functions as references.
> i know how to do this easily with perl, but i cannot
> seem to find the correct syntax for creating a reference
> to a function in PHP.
>[..]
> any and all help is appreciated.
I dont't think there is something like that in PHP, but variable
functions might help you:
http://php.net/manual/en/functions.variable-functions.php
call_user_func() is often cleaner, though.
http://php.net/manual/en/ref.funchand.php
Also have a look at call_user_method() and the other functions in this
section of the manual.
regards
Wagner
-- Madness takes its toll. Please have exact change.-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Philip Olson: "Re: [PHP] references... found it"
- Previous message: Kyle Smith: "[PHP] Flash question, but includes variables!"
- In reply to: scott [gts]: "[PHP] references"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

