DateTimeからタイムスタンプを取得する方法。
$dt=new DateTime();
echo $dt->format('y/m/d h:i:s');//タイムスタンプ
echo '<br>';
echo $dt->format('U');//タイムスタンプ