Answers for "get 3 char after specific substirng php"

PHP
3

take 10 character from string using php

$return_string = substr("Hi i am returning first 10 characters.", 0, 10);
Output:
"Hi i am re"
Posted by: Guest on August-18-2020
0

get substring after character php

<?php
$my_url = 'http://www.example.com/5478631';
echo substr($my_url, strrpos($my_url, '/' )+1)."\n";
?>
  // print: 5478631
Posted by: Guest on January-06-2021

Code answers related to "get 3 char after specific substirng php"

Browse Popular Code Answers by Language