Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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"
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #pegar #parte #da #string #php
ADD COMMENT
Topic
Name
2+4 =