Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get substring after character php

<?php
$my_url = 'http://www.example.com/5478631';
echo substr($my_url, strrpos($my_url, '/' )+1)."
";
?>
  // print: 5478631
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #substring #character #php
ADD COMMENT
Topic
Name
3+1 =