📜  从 int php 代码示例中获取最后两个数字

📅  最后修改于: 2022-03-11 14:54:08.701000             🧑  作者: Mango

代码示例2
// first two
$year = substr($flightDates->departureDate->year, 0, 2);
// last two
$year = substr($flightDates->departureDate->year, -2);