Search
 
SCRIPT & CODE EXAMPLE
 

PHP

sub() vs substr in php

<?php
$rest = substr("abcdef", -1);    // returns "f"
$rest = substr("abcdef", -2);    // returns "ef"
$rest = substr("abcdef", -3, 2); // returns "de"
?>
Comment

PREVIOUS NEXT
Code Example
Php :: show number 1 as 00001 laravel 
Php :: Shorten long numbers to K/M/B? 
Php :: php get list of months by year 
Php :: remove public from laravel 
Php :: php oops 
Php :: lervel php 
Php :: Wordpress srcset with ACF Image & lazy Load 
Php :: ballerina 
Php :: testimonial custom post type and uses shortcode 
Php :: php iterate through objects 
Php :: how to check if a url has a certain word in laravel 
Php :: laravel capitalize first letter 
Php :: $_FILES image dimensions 
Php :: SendEmailVerificationNotification::class 
Php :: wordpress deny user to access wp-admin programmatically 
Php :: PDF Library Persian Language UTF-8 Support mPDF Lib 
Php :: object initialization 
Php :: check session sweet alert 
Php :: wordpress code 
Php :: laravel csv import 
Php :: laravel many to many 
Php :: laravel post index method 
Php :: ussd php 
Php :: afficher les input dans un tableau php est stocker dans fichier 
Php :: php prepared statement and conditional 
Php :: fuelphp authentication 
Php :: order by array like sql php 
Php :: How to add page heading in FPDF PHP 
Php :: how to add to array in single without repetation 
Php :: execute query and use die in php 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =