Jump to content

PHP Tags


Recommended Posts

If you put PHP code in the [ code] tag it doesn't colour code it though:

[code]
<?php
if($wohoo == '0') {
echo = "yes";
} else {
echo = "no";
}
?>[/code]

[code=php:0]
if($wohoo == '0') {
echo = "yes";
} else {
echo = "no";
}[/code]


It's hard to see where the code stops and the normal text starts.

EDIT: Aha, I didn't know you had to put PHP <?php tags in to colour code it in the [ code].
Link to comment
https://forums.phpfreaks.com/topic/33151-php-tags/#findComment-154540
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.