方法 1: //list($first,$second)=explode(" ",$date_temp); //echo $first> //echo substr($first,2) ) メソッド 2: // echo date("Y-m-d", strtotime($date_temp)); メソッド 3: echo substr($date_temp,0,10)."alert('安全な終了!!');"; echo ""; <br>echo "top .window .opener = 'xxx';top.window.close();"; <br>echo "";