Answers for "how to get substring from a position to after a char in php"

PHP
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 "how to get substring from a position to after a char in php"

Browse Popular Code Answers by Language