[PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread Noah Spitzer-Williams
I may have a variable that changes page to page, but once it loads up, it never needs to be changed on that page. So my question is should i just do: define(myvar, 3); OR: $myvar = 3; does defining it make that much of a difference (if i have several of these variables that could be defined

Re: [PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread CC Zona
In article 9dsknt$fb1$[EMAIL PROTECTED], [EMAIL PROTECTED] (Noah Spitzer-Williams) wrote: So my question is should i just do: define(myvar, 3); OR: $myvar = 3; does defining it make that much of a difference (if i have several of these variables that could be defined instead).

Re: [PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread Noah Spitzer-Williams
Ok, I'm only wondering this because I'm tryin to decrease the load time significantly because each page has to go through a lot of stuff before they're loaded and with the volume of hits it gets, i need anything to help out - Noah CC Zona [EMAIL PROTECTED] wrote in message 9dsm85$kgl$[EMAIL