Re: [PHP] Making varibles (more than one) with a function.

2002-05-23 Thread Steve Edberg
Because global is specific to the SCOPE not to the variable - variables themselves aren't tagged as global. If you add global $text; in your echoo() function it will work. Alternatively, you could replace echo $text; with echo $GLOBALS['text']; in your echoo() function

Re: [PHP] Making varibles (more than one) with a function.

2002-05-23 Thread David Duong
If that works than the why does test file I tried previously to making the post return a $text does not exist error? "Sqlcoders.Com Programming Dept" <[EMAIL PROTECTED]> wrote in message 009f01c20241$f05aaf80$6520fea9@dw">news:009f01c20241$f05aaf80$6520fea9@dw... > Sqlcoders.com Dynamic data dri

Re: [PHP] Making varibles (more than one) with a function.

2002-05-23 Thread Analysis & Solutions
David: > makevars() { > list($md5,$pusername,$pproject,$pfile) = explode(":",$authok); > $user = $pusername; > $project = $pproject; > $file = $pfile; > } Uh, why are you wasting memory and time by reassigning the variables? Why not call the variables what you want them to be in the first plac

Re: [PHP] Making varibles (more than one) with a function.

2002-05-22 Thread Sqlcoders.com Programming Dept
Sqlcoders.com Dynamic data driven web solutions - Original Message - From: "David Duong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: May 22 2002 04:21 PM Subject: [PHP] Making varibles (more than one) with a function. > I am aware that return can return strings but is their a set