function checkNumericStringOrInt($amount=false) { if (in_array(gettype($amount),array("integer","double","string")) and ((($amount*1)."") === ($amount.""))) { return true; } return false; }