Jump to content
php.lv forumi

highlight_string


cucumber

Recommended Posts

ka var panakt ka izmantojot f-ju highlight_string \n partaisa par <br> un tie nostrada?

Link to comment
Share on other sites

\n uz <br /> pārveido funkcija nl2br().

 

<?php
echo nl2br(highlight_string("<?php echo \"tes\nts\"; ?>", true));
?>

Edited by eglitis
Link to comment
Share on other sites

×
×
  • Create New...