Re: [PHP] intval() vs. (int)

2005-09-02 Thread Robert Cummings
On Fri, 2005-09-02 at 14:47, Rory Browne wrote: > (int) seems to be faster, but not by an awful lot. Personally however > if its a case of typing five characters (int) and saving a little exec > time, or typing 8 and losing a little, then I'd perfer to go with the > five an save the exec time. (in

Re: [PHP] intval() vs. (int)

2005-09-02 Thread Rory Browne
(int) seems to be faster, but not by an awful lot. Personally however if its a case of typing five characters (int) and saving a little exec time, or typing 8 and losing a little, then I'd perfer to go with the five an save the exec time. I think I remember hearing about some other consequence wit

Re: [PHP] intval() vs. (int)

2005-09-02 Thread Philip Hallstrom
On checking form fields that they are of type int, what is best to use: intval() or type casting (int)? In terms of speed, would (int) not be better, because we save a function call (especially on very large sql statements)? Time it. On an 800mhz box doing absolutely nothing else (it's just sit

[PHP] intval() vs. (int)

2005-09-02 Thread Thomas
Hi, On checking form fields that they are of type int, what is best to use: intval() or type casting (int)? In terms of speed, would (int) not be better, because we save a function call (especially on very large sql statements)? Thanks. Thomasx` SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen