If there is one thing I can't understand ( or learn ), then that's preg_replace
syntax. I need help removing all possible symbols ( space, tab, new line, etc. ) between >
and <
.
Meaning, I have such XML:
<?xml version=\"1.0\" encoding=\"UTF-8\"?><bl> <snd>BANK</snd> <rcv>ME</rcv> <intid>773264</intid> <date>17072012</date></bl>
I need it to look:
<?xml version=\"1.0\" encoding=\"UTF-8\"?><bl><snd>BANK</snd><rcv>ME</rcv><intid>773264</intid><date>17072012</date></bl>
So far I came up with this:
$this -> data = preg_replace('\>(.*?)<\', '><', $data);
But it doesn't even come close to what I need. A solution would be appreciated.