$foo="test\ntest"; //Will print testtest print $foo; $foo=nl2br($foo); print $foo; //Will print: //test //test