i think the item you are evaluating is an object and needs to converted to a string to be read like that.
maybe this will work (just a guess)
if (gettype($var) !== 'string') {
if (settype($var,"string")) {
echo $var . ' set to string';
}
else {
echo $var ' not able to be set to string';
}
}
//process variable
I have never had to do this so I don't know if it will work
Last edited by kkeith29; Apr 10th, 2008 at 11:14 am.
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
Offline 1,315 posts
since Jun 2007