- explode: documentation ( source)
- checkdate: documentation ( source)
<?php
$date = "2015-04-01";
$temp = explode("-", $date);
$year = $temp['0'];
$month = $temp['1'];
$day = $temp['2'];
if(checkdate($month, $day, $year) === false){
echo "11";
}