PHP – make timestamp from normal date/time string

       
"; $d=mktime(10, 01, 00, 8, 12, 2019); echo $d; echo "

"; $data1 = "18/05/2019"; $x = (explode("/",$data1)); echo $x[0]; echo $x[1]; echo $x[2]; echo "

"; $ora1 = "11:00"; $y = (explode(":",$ora1)); $m_y = $y[0]-2; echo $m_y; echo $y[1]; echo "


"; $d=mktime($m_y, $y[1], 00, $x[1], $x[0], $x[2]); echo $d; ?>

Demo here.