- var_dump: documentation ( source)
- is_numeric: documentation ( source)
<?php
$foo = 1;
$bar = "A";
echo "foo";
$b = is_numeric($foo);
$c = is_int($foo);
var_dump($b);
var_dump($c);
echo "bar";
$b = is_numeric($bar);
$c = is_int($bar);
var_dump($b);
var_dump($c);