Making varibles (more than one) with a function.

From: Date: Wed, 22 May 2002 23:21:40 +0000
Subject: Making varibles (more than one) with a function.
Groups: php.general 
Request: Send a blank email to php-general+get-98836@lists.php.net to get a copy of this message
How could I have a function create variables that can be used in other functions? _Example_: makevars() { list($md5,$pusername,$pproject,$pfile) = explode(":",$authok); $user = $pusername; $project = $pproject; $file = $pfile; } function display () { makevars(); echo "$user,$project,$file"; } I am aware that return can return strings but is their a set global or a function similar to return?

« previous php.general (#98836) next »