PHP Code Tags

Dismounted

59.***.***.***
1,440 days ago

PHP Code Tags

I think many people don't know about these tags, but a few may. The tag is

PHP code:

and should be used more often for posted PHP code. It parses the PHP code clearly in different colours.

Example:
[php]<?php
$age = $_POST['age'];

echo ("Your age is " . $age . " .");
?>

Bill

80.***.***.***
1,440 days ago
That does come through more clearly. I'm guilty of using [code], but I will change my ways henceforth. :D

Dismounted

59.***.***.***
1,440 days ago
It looks more like coding in Dreamweaver and Frontpage which newcomers to PHP will enjoy. Also very easy to read when using the tags. :)

penguinmama

12.***.***.***
1,438 days ago
Wow, that makes it MUCH more readable!! I use alleycode for quick edits and it color-codes like that, too.

Darkneoboi

68.***.***.***
1,435 days ago
I have seen people use that before but i wasn't sure how to do it. It really does help the text be more readable. Thank you for the info.

Dismounted

59.***.***.***
1,435 days ago
Also, I forgot to mention, There are HTML code tags too, they are

HTML code:

:). For Example; [html]<html> <head> <title>Test Page</title> </head> <body> <p>Check out the HTML Code tags!</p> </body> </html>

Bradd

203.***.***.***
1,412 days ago

Dismounted;125:

I think many people don't know about these tags, but a few may. The tag is

PHP code:

and should be used more often for posted PHP code. It parses the PHP code clearly in different colours.

Example:
[php]<?php
$age = $_POST['age'];

echo ("Your age is " . $age . " .");
?>



That is a good approach of coding technique and declaring variable .
We should also use some easy and approachable techniques to let things simplify to maintain after building !