Showing code with BBCode

Rendering some text (mostly code) while maintaining all white spacing and indentation within. Also uses a monospaced font (each character takes up the same space).

To find out more about the bbcode tags used on this page, please go to the bbcode tags reference page.

The following bbcode:

[code]
$b = "hello world";
echo $b;
[/code]

Yields this:


ADVERTISEMENTS

$b = "hello world";
echo $b;