I have the following string
$url_part = 'p=link&u=shuja&sort=recent';
I want to get string start with p= and end with & in such a way,
$page = 'link';
and it may exist anywhere in $url_parts. Then remove the same like that
$url_part = 'u=shuja&sort=recent';
1 Answer