Um...I think you could just use "global". As in:
global $domain, $tld, $firstname, $lastname, $userid;
Once a variable is declared global, any change to that variable inside the
function is reflected outside of the function.
So:
function before_after ()
{
global $var;
echo $var . "";
$var =
On 4/5/01 3:56 PM, "Matt McClanahan" <[EMAIL PROTECTED]> wrote:
> On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote:
>
>> Is there another way to write this I would like to make it smaller
>> also How would I write it so it is a function and I would be able to use all
>> the data thr
;
Sent: Thursday, April 05, 2001 6:56 PM
Subject: Re: [PHP] How can I make this smaller
> On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote:
>
> > Is there another way to write this I would like to make it smaller
> > also How would I write it so it is a function
On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote:
> Is there another way to write this I would like to make it smaller
> also How would I write it so it is a function and I would be able to use all
> the data throughout the whole program every time I try the rest of the
> program do
4 matches
Mail list logo