Re: Problem with returning value from function
| From: | CC Zona | Date: | Tue, 26 Jun 2001 23:55:55 +0000 |
| Subject: | Re: Problem with returning value from function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55301@lists.php.net to get a copy of this message | ||
In article <17753609234.20010626151431@pacifier.com>,
rkurth@pacifier.com (Richard Kurth) wrote:
> I am having problem getting the info back after I send it to a
> function.
<snip>
>
> if ($line1){ //This is what is in Line1 Dear ##fullname##
> $line=$line1;
> proce($line);
> $line1=$line;
> }
>
> Function proce($line){
<snip>
> return $line;
> }
You're returning a value to nowhere. Change"proce($line)" to
"$returnedvalue=proce($line)".
--
CC