Search
 
SCRIPT & CODE EXAMPLE
 

PHP

pegar parte da string php


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

Comment

PREVIOUS NEXT
Code Example
Php :: wordpress remove quick edit custom post type 
Php :: get word between two characters php 
Php :: laravel clear table 
Php :: how to write json to file in php 
Php :: vue mouseover 
Php :: laravel form validation phone number 
Php :: href in laravel view 
Php :: convert post name to id 
Php :: wordpress get page slug 
Php :: php ini ubuntu 
Php :: laravel eloquent get only field name 
Php :: php see if undefined 
Php :: start php server 
Php :: strlen php 
Php :: php get timezone 
Php :: install php linux nginx command line 
Php :: laravel if file is image 
Php :: carbon to mysql datetime 
Php :: woocommerce get user id by email 
Php :: laravel display old value in form 
Php :: laravel mixed content error 
Php :: composer larave install version 
Php :: remove .php from url 
Php :: laravel add utility class 
Php :: factorial program in php using recursive function 
Php :: How To Clear Laravel.Log In Laravel? 
Php :: how to get the current year in php 
Php :: strtotime add 1 hour 
Php :: php echo alot of html 
Php :: toarray php 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =