how to return strings from functions?

From: Date: Wed, 04 Apr 2001 06:14:06 +0000
Subject: how to return strings from functions?
Groups: php.general 
Request: Send a blank email to php-general+get-46976@lists.php.net to get a copy of this message
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

« previous php.general (#46976) next »