[ create a new paste ] login | about

Link: http://codepad.org/fYZuy4LS    [ raw code | output | fork | 3 comments ]

PHP, pasted on Oct 12:
1
2
3
4
<?php
$text = "First line.\nSecond line.\nThird line.\n";
echo preg_replace('/^.+\n/', '', $text);
?>


Output:
1
2
Second line.
Third line.


Create a new paste based on this one


Comments:
posted by 1111111 on Aug 8
qqq

qqq
reply
posted by 1111111 on Aug 8
qqq

qqq

qqq
reply
posted by 1111111 on Aug 8
qwqwqw

qwqwqw

qwqwqw
reply