@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
>>
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.
> >
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
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
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
5 matches
Mail list logo