RE: [PHP] how do i get a variable type?

From: Date: Sun, 18 Mar 2001 02:18:39 +0000
Subject: RE: [PHP] how do i get a variable type?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44420@lists.php.net to get a copy of this message
On 18-Mar-01 phpman wrote: > hello all, > <snip> > > and i want to find out if $tmp[1] is a string or an integer (that's really > all I need to determine gettype($foo) ? > so i can put > together an SQL statement that puts single quotes around strings and none > around integers). <snip> depending on your SQL engine, you can usually quote integers. Regards, -- Don Read dread@texas.net -- If you are going to sin, sin against God, not the bureaucracy. God will forgive you but the bureaucrats won't.

« previous php.general (#44420) next »