intval() vs. (int)
| From: | Thomas | Date: | Fri, 02 Sep 2005 09:05:29 +0000 |
| Subject: | intval() vs. (int) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221744@lists.php.net to get a copy of this message | ||
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, 0043
Tel: +27 12 362 3486
Fax: +27 12 362 3493
Mobile: +27 82 442 9228
Email: thomas.hochstetter@gmx.net
Web: www.spiraleye.co.za