is it an array, or is it an integer, or is it numeric
<?php
$item = 43;
echo "\$item is of type array: ".is_array($item)."<br />";
echo "\$item is of type integer: ".is_integer($item)."<br />";
echo "\$item is numeric: ".is_numeric($item)."<br />";
?>