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 does not see the data
if(file_exists("userdata")) {
$fp2=fopen
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 does
l 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 and I would be able to use
all
the data throughout
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 throughout
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 . "BR";
$var
5 matches
Mail list logo