Re: Problem with returning value from function

From: Date: Wed, 27 Jun 2001 09:09:15 +0000
Subject: Re: Problem with returning value from function
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-55361@lists.php.net to get a copy of this message
> > You're returning a value to nowhere. Change"proce($line)" to > > "$returnedvalue=proce($line)". > Or if you want to keep your code as is just define proc() as: > > function proce(&$line) { .... } Or use "global $line;" or add $line to the $GLOBALS array, so that the function's local changes to $line carry over into the global namespace. -- CC

« previous php.general (#55361) next »