Re: [PHP] What's more effecient: var on every page or simple function?

2001-05-15 Thread Zef Hemel
I'd say the first one, but if you'd use $myvar as a constant only, try this: define(MYVAR,3); Might be even more efficient ;-) btw. You can call this value like this: echo MYVAR; Zef Noah Spitzer-Williams [EMAIL PROTECTED] schreef in berichtnieuws 9dpjiu$5nu$[EMAIL PROTECTED] Which of the two

[PHP] What's more effecient: var on every page or simple function?

2001-05-14 Thread Noah Spitzer-Williams
Which of the two is more efficient: # start of file.php $myvar = 3; # end file.php #start of file.php function myvar() { return 3; } #end file.php the difference between the two is the first example would set the variable on every page regardless of whether it was used whereas with the