php-general | 2001092
Date: 09/30/01
- Next message: ani <email protected>: "[PHP] Running a script with Crontab"
- Previous message: Andres Montiel: "[PHP] Recursion"
- Next in thread: Justin Garrett: "[PHP] Re: Making variable global / accessing variable"
- Reply: Justin Garrett: "[PHP] Re: Making variable global / accessing variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello!
How can I make a variable, which name I give to a function, global in
this function?
I want to make something like:
function MyFunc($sVarName)
{ GLOBAL [$sVarName]_error, $sVarName_ok;
....
}
So if $sVarName = "sHello", I want to access $sHello_error and
$sHello_ok in this function.
Any idea how I can make this variable gloabl and whats the easyst way to
access this var then?
Martin
-- 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: ani <email protected>: "[PHP] Running a script with Crontab"
- Previous message: Andres Montiel: "[PHP] Recursion"
- Next in thread: Justin Garrett: "[PHP] Re: Making variable global / accessing variable"
- Reply: Justin Garrett: "[PHP] Re: Making variable global / accessing variable"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

