<?php $str = '<p>Hello World!</p><p style="text-align:center"><img src="foo.png" /><br /></p>';$lines = explode( '|', str_replace('><', '>|<', $str));print_r($lines);
Standard input is empty
Array ( [0] => <p>Hello World!</p> [1] => <p style="text-align:center"> [2] => <img src="foo.png" /> [3] => <br /> [4] => </p> )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!