Posts: 933
Name: Buck Roberts
Location: Astoria, Oregon, United States
|
I decided to actually learn PHP I'm just doing some tutorials I found on YouTube.
So say I wanted to show some php code on my webpage without executing it.
Is there HTML tags I can put the PHP in to display the code. Or do I do it with PHP script.
And which way works best?
And just is there an HTML tag that is equivalent to the BB code?
PHP Code:
<?php
$num = 1;
while ($num<=10)
{
echo "Loop $num <br />";
$num = $num + 1;
}
?>
This seems like a really stupid thing to not know.
__________________
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE blog about paintings, drawings and photographs.
Please login or register to view this content. Registration is FREE Weapons system and aerospace components
|