1 2 3 4 5 6 7 8 9
<?php $buf= "This\tis\tmy\nstring\nwith\ttabs\nand\tnewlines\n."; $buf_explode=explode("\n",$buf); for($i=0;$i<count($buf_explode);$i++){ echo $buf_explode[$i]."<br>"; };
1
This is my<br>string<br>with tabs<br>and newlines<br>.<br>