<?php $num = 12; if (is_numeric($num)) { echo $num . " is numeric"; } else { echo $num . " is not numeric"; } ?>