There is a text file:
<sq>fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq><sq> fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq>
I need an array with all the texts between the <sq> tags
I do this:
preg_match("#<sq>(.*)</sq>#si", $filecontent, $out);
As a result, I get the output: $ out [0]:
<sq>fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq><sq> fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq>
$ out [1]:
fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq><sq> fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg</sq> <sq>fgafdsg
Further the array is empty. What is the error, tell me, please. Previously, this was no problem. XML Parser do not offer.