<?php $sSubject = '10-12-1945'; var_dump((int) $sSubject);var_dump(is_int($sSubject));var_dump(is_numeric($sSubject)); /*EOF*/
Standard input is empty
int(10) bool(false) bool(false)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!