Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
dateLocal 変数を"2013-04-18T12:25:00.000"として取得しています。これで12:25:00.000 のみを取得するにはどうすればよいですか?
以下のコードでこの値を呼び出しています
echo $flightstatus->arrivalDate->dateLocal,"<br>";
dateおよびstrtotime関数を使用してこれを達成できます
date
strtotime
echo date('H:i:s',strtotime($flightstatus->arrivalDate->dateLocal));
これは出力されます
12:25:00