Thread
:
Website Performance Tips & Tricks
View Single Post
#
36
(
permalink
)
08-17-2007, 08:57 AM
vijayanand
D-Web Analyst
Join Date: Feb 2007
Posts: 293
Re: Website Performance - Tips & Tricks
How to check if a variable is an integer?
Tip: Assuming $foo is an the variable do :
if (ereg("^[0-9]+$", $foo)) {
echo "it's an Integer";
}
__________________
J.Vijayanand
vijayanand
View Public Profile
Send a private message to vijayanand
Find all posts by vijayanand