note 111680 added to function.highlight-string
| From: | BudiMaulana | Date: | Fri, 15 Mar 2013 16:52:06 +0000 |
| Subject: | note 111680 added to function.highlight-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194087@lists.php.net to get a copy of this message | ||
<?php
/*
here are simple code
to preview your PHP-source content.
it's use highlight_string function.
I hope this help.
*/
echo "Hello World";
?>
<?php /* source */
/* configurable style start here */
echo "<hr noshade />";
/* just simple as below */
echo highlight_string(
substr(
file_get_contents(__FILE__),
0,
strpos(
file_get_contents(__FILE__),
"<?php /* source */"
)
),1);
/* use as you wish ... */
----
Server IP: 69.147.83.199
Probable Submitter: 182.10.220.122
----
Manual Page -- http://php.net/manual/en/function.highlight-string.php
Edit -- https://master.php.net/note/edit/111680
Del: integrated -- https://master.php.net/note/delete/111680/integrated
Del: useless -- https://master.php.net/note/delete/111680/useless
Del: bad code -- https://master.php.net/note/delete/111680/bad+code
Del: spam -- https://master.php.net/note/delete/111680/spam
Del: non-english -- https://master.php.net/note/delete/111680/non-english
Del: in docs -- https://master.php.net/note/delete/111680/in+docs
Del: other reasons-- https://master.php.net/note/delete/111680
Reject -- https://master.php.net/note/reject/111680
Search -- https://master.php.net/manage/user-notes.php