Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

php get last digit of number

$number = 12356;
$lastDigit = $number % 10;
echo $lastDigit; // 6
Comment

PREVIOUS NEXT
Code Example
Php :: Dispatch, performance 
Php :: shop manager Redirect @ WooCommerce 
Php :: Delete Collection (Get) 
Php :: current Menu Item 
Php :: if product open display this button 
Php :: php parse_url array function 
Php :: laravel store mail driver info in database 
Php :: how to remove public from url in laravel 9 
Php :: check file extension in php 
Php :: x-default wpml canonical alternate hreflang 
Php :: Get and access to the order data properties (in an array of values): 
Php :: odoctrine querybuilder print sql 
Php :: provenienza geografica di un utente php webmaster 
Php :: Store authentication status in a cookies 
Php :: show dot dot after some words php 
Php :: how to override category product from seo title and description 
Php :: refresh database tables yii 1 
Php :: checnge message no products were found matching your selection woocommerce edit 
Php :: laravel filemanger choose multiple images 
Php :: php script 
Php :: php mailer 
Php :: html table to array php 
Php :: wordpress font awesome enque 
Php :: php add 1 day hours to unix timestamp 
Php :: variable superglobale php 
Php :: php slow 
Java :: print map java 
Java :: The package java.awt.event is not accessible 
Java :: javafx dependency 
Java :: java lambda foreach multiple statements 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =