[ create a new paste ] login | about

Link: http://codepad.org/BT2lA4NF    [ raw code | output | fork ]

PHP, pasted on Jan 5:
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>";
};


Output:
1
This	is	my<br>string<br>with	tabs<br>and	newlines<br>.<br>


Create a new paste based on this one


Comments: