Answers for "php get last 2 digits of year"

PHP
0

get last two numbers from int php

// first two
$year = substr($flightDates->departureDate->year, 0, 2);
// last two
$year = substr($flightDates->departureDate->year, -2);
Posted by: Guest on November-04-2021

Code answers related to "php get last 2 digits of year"

Browse Popular Code Answers by Language