Re: Problem with returning value from function

From: Date: Wed, 27 Jun 2001 18:38:04 +0000
Subject: Re: Problem with returning value from function
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-55320@lists.php.net to get a copy of this message
Or if you want to keep your code as is just define proc() as: function proce(&$line) { .... } "CC Zona" <cczona@nospam.invalid> wrote in message news:9hb78a$5a7$1@w153.z064000151.sjc-ca.dsl.cnc.net... > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55320) next »