cucumber Posted July 7, 2006 Report Share Posted July 7, 2006 ka var panakt ka izmantojot f-ju highlight_string \n partaisa par <br> un tie nostrada? Link to comment Share on other sites More sharing options...
eglitis Posted July 7, 2006 Report Share Posted July 7, 2006 (edited) \n uz <br /> pārveido funkcija nl2br(). <?php echo nl2br(highlight_string("<?php echo \"tes\nts\"; ?>", true)); ?> Edited July 7, 2006 by eglitis Link to comment Share on other sites More sharing options...
Delfins Posted July 7, 2006 Report Share Posted July 7, 2006 uzraksti savu f-ju ar pregu/str-replace http://lv.php.net/highlight_string ir daudz piemēru... Link to comment Share on other sites More sharing options...
Recommended Posts