📜  php 获取数字的最后一位 - PHP 代码示例

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

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