I am have a string having url
/abc/xyz/index.php/pqr/wer
I want the result as path after index.php*
i.e;
pqr/wer
to be stored in a variable
I did try with
Preg_match,trim,split,substring
split splits it but then how do i get path after index.php
what if i have
$url =/abc/xyz/index.php
it return index.php
Try this