3
I have a simulate string to:
<li><a title="string" href="http://geting.com/?v=123?t=abc">Opção 1</a></li>
I’d like something to take the parameter ?v=
, just him, just like when we took the method $_GET["v"]
.
How could I do that? I believe preg_match
could help me, but I don’t understand about?
$string = '<li><a title="string" href="http://geting.com/?v=123?t=abc">Opção 1</a></li>';
echo preg_match('regex',$string);
Desired result: 123
https://ideone.com/wHNt0v
– user60252