Re: how to return strings from functions?

From: Date: Wed, 04 Apr 2001 05:28:37 +0000
Subject: Re: how to return strings from functions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-46982@lists.php.net to get a copy of this message
i just test that code and i got the full string fine...check and see if what you typed here is the same as your original code... jack Vlad wrote: > > Hi all > > script example: > > function smth(){ > $result = '1234 - the number'; > return $result; > } > ... > $res = smth(); > ... > After this $res takes value of 1234 not the actual string. > Is any soolution here? > > Thanks, Vlad > > -- > 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 (#46982) next »