i want to pass variable in date function. it works while passing only one variable but if i pass two variable one for month and other for year then it does not work Please resolve
<?php
$m = 'June';
$y = '2011';
echo $cutoff = date('m-d-Y', strtotime( $m . '01' . ' 2011'));
echo '<br>';
echo $nono = date('m-t-Y', strtotime( $m . '01' . $y));
?>