On 10/11/06, Paul Scott <[EMAIL PROTECTED]> wrote:
On Wed, 2006-10-11 at 13:19 -0400, Eric Butera wrote:
> In the add_some_extra example you gave he wants the named value of the
> passed parameter which is $str.
>
Isn't that what the Reflection API is there for?
--Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
I don't see anything on ReflectionFunction that would give the string
value of the variable that is passed as a parameter.
function add_some_extra(&$string) {
$string .= 'and something extra.';
}
$str = 'This is a string, ';
add_some_extra($str);
You can $string, but not $str as far as I know.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php