Difference between revisions of "Php"

From Online Manual

Jump to: navigation, search
m (Bot: Automated text replacement (-</tt> +))
m (Bot: Automated text replacement (-[ +[))
Line 1: Line 1:
 
{{Wordy bbc
 
{{Wordy bbc
 
|tag=php
 
|tag=php
|example=&#91;php&#93;&lt;?php echo &quot;Hello world!&quot;; ?&gt;&#91;/php&#93;
+
|example=[php&#93;&lt;?php echo &quot;Hello world!&quot;; ?&gt;[/php&#93;
 
|description=The php tag colors text with php syntax. This is a block level tag, however no tags can be placed inside as they will all be formatted according to php syntax.
 
|description=The php tag colors text with php syntax. This is a block level tag, however no tags can be placed inside as they will all be formatted according to php syntax.
 
|result=<span class="phpcode"><span style="color: #000000"><span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Hello&nbsp;world!"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;</span></span></span>
 
|result=<span class="phpcode"><span style="color: #000000"><span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"Hello&nbsp;world!"</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">?&gt;</span></span></span>

Revision as of 07:36, 1 July 2013

description: The php tag colors text with php syntax. This is a block level tag, however no tags can be placed inside as they will all be formatted according to php syntax.

example: [php]<?php echo "Hello world!"; ?>[/php]

result: <?php echo "Hello world!"?>