can anybody tell me in english what this expression is doing?
especially the meaning and use of addslashes, nl2br.
Code: Select all
$filedesc = addslashes(nl2br($filedesc));Moderator: General Moderators
Code: Select all
$filedesc = addslashes(nl2br($filedesc));Code: Select all
<?php
$test = "just a \\test\\\nnew line\n'makes no sense' ";
print($test);
print('<hr/>');
$test = nl2br($test);
print($test);
print('<hr/>');
$test = addslashes($test);
print($test);
?>