Wed, November 13, 2019, 21:19:35
 
Home · Latest · Trends  /  PHP
2

Highlight String Example

rated 2 times [  2] [ 0]  / comments: 0 / hits: 301  / 11 months ago, sun, jan 20, 2019, 20:37:34
<?php
$string = '<?php
/**
 * @author me
 * @copyright 2019
 */
$foo = "Highlight String";
echo $foo;
?>';
echo '<pre style="line-height:18px;padding:5px;border:1px solid #aaa;max-width:600px;white-space:normal;background-color:#eff0f1;">';
highlight_string($string);
echo '</pre>';
?>
More From » PHP
 

Comments

There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account
 
Share
Snippets
2 years ago, mon, may 21, 2018
1 year ago, sat, jun 23, 2018
11 months ago, sun, jan 20, 2019
Posted
my3profile

my3profile

Member since May 21, 2018
Total Code Snippets: 4
Total Comments: 1
Location: n/a
Following
User not following anyone yet.