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

2002-05-23 Thread Steve Edberg
@dw">news:009f01c20241$f05aaf80$6520fea9@dw... >> Sqlcoders.com Dynamic data driven web solutions >> >> - Original Message ----- >> From: "David Duong" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >> Sent: May 22 2002 04:21 PM >>

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

2002-05-23 Thread David Duong
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. > >

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 s

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

2002-05-22 Thread David Duong
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