Well i guess i didnt RTFM too well.. i found the function 'gettype()'. but it still had problems distinguishing between strings || integers... so i did:
switch(gettype($var)):
case "string":
if (is_numeric($var)) {
echo 'is int';
} else {
echo 'is string';
}
break;
case "array";
echo 'is array';
break;
endswitch;
but now i sit back after i just wrote that and think the best way would be...
if (is_array($var)) {
echo 'is array';
} elseif (is_numeric($var)) {
echo 'is int';
} elseif (is_string($var)) {
echo 'is string';
}
thats what i have come up with and it works... still looking for something a bit cleaner though... that seems a bit dirty... any light you can shed on this would be helpful
thanks in advance
-Jon