Hi,
I need to configure 4 ip address (same subnet and mask) in one ipmp group (two interfaces) in an active active formation (link based). Can some one provide the steps or a tutorial link.
Thanks (2 Replies)
Hello,
I have a bash script that outputs the following text to a file and then prints that file to the screen:
|64 |30 |0 |8 |23:59:14
|38 |57 |2 |14 |00:09:05
|29 |50 |4 |20 |23:58:04
|20 |48 |7 |23 |00:05:44
|18 ... (2 Replies)
Hi Folks -
I'm looking for the best way to to increment fiscal weeks - allow me to explain.
At my one client, 10/01/17 was the beginning if year fiscal year 2018.
Each week, I need to manage a unique set of variable that are updated in my application - they are called substitution variables.... (31 Replies)
Hey,
Upgrade (step 1) the posts, by putting a "user info" icon in the top right and making it so it toggles the user info.
The user info icon has a badge which shows the number of posts. I will have to dig around in the code more to get the total posts thanks and other badges working; but... (22 Replies)
Discussion started by: Neo
22 Replies
LEARN ABOUT PHP
highlight_string
HIGHLIGHT_STRING(3) 1 HIGHLIGHT_STRING(3)highlight_string - Syntax highlighting of a stringSYNOPSIS
mixed highlight_string (string $str, [bool $return = false])
DESCRIPTION
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax
highlighter for PHP.
PARAMETERS
o $str
- The PHP code to be highlighted. This should include the opening tag.
o $return
- Set this parameter to TRUE to make this function return the highlighted code.
RETURN VALUES
If $return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success,
FALSE on failure.
EXAMPLES
Example #1
highlight_string(3) example
<?php
highlight_string('<?php phpinfo(); ?>');
?>
The above example will output (in PHP 4):
<code><font color="#000000">
<font color="#0000BB"><?php phpinfo</font><font color="#007700">(); </font><font color="#0000BB">?></font>
</font>
</code>
The above example will output (in PHP 5):
<code><span style="color: #000000">
<span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span>
</span>
</code>
NOTES
Note
When the $return parameter is used, this function uses internal output buffering so it cannot be used inside an ob_start(3) callback
function.
The HTML markup generated is subject to change.
SEE ALSO highlight_file(3), Highlighting INI directives.
PHP Documentation Group HIGHLIGHT_STRING(3)