That is my code:
preg_match('/\<span id\="([a-zA-Z0-9\s]+?)\"\>([a-zA-Z0-9\s]+?)\<\/span\>/', '<span id="1">test</span> <span id="2">test1</span>', $match);
var_dump($match);
But why in $match array have only id=1 and test?
That is my code:
preg_match('/\<span id\="([a-zA-Z0-9\s]+?)\"\>([a-zA-Z0-9\s]+?)\<\/span\>/', '<span id="1">test</span> <span id="2">test1</span>', $match);
var_dump($match);
But why in $match array have only id=1 and test?