Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get last two numbers from int php

// first two
$year = substr($flightDates->departureDate->year, 0, 2);
// last two
$year = substr($flightDates->departureDate->year, -2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numbers #int #php
ADD COMMENT
Topic
Name
3+6 =