Question : get the string after a character in php
Answered by : thankful-toucan-o7gyjty9627k
$data = "123_String";
$whatIWant = substr($data, strpos($data, "_") + 1);
echo $whatIWant;
Source : https://stackoverflow.com/questions/11405493/how-to-get-everything-after-a-certain-character | Last Update : Mon, 04 May 20
Question : get substring after character php
Answered by : victorious-vole-yr0ttyzv3mcz
<?php
$my_url = 'http://www.example.com/5478631';
echo substr($my_url, strrpos($my_url, '/' )+1)."\n";
?> // print: 5478631
Source : | Last Update : Wed, 13 Jan 21