Well I thought in order to test my skills I would write a tutorial on PHP! It is only basic, so to help out others etc.
Result: Hello World is written to the page!PHP Code:<?php
echo ('Hello World');
?>
Result is still Hello World on the page, however the text is stored in the variable $textPHP Code:<?php
$text = "Hello World!";
echo ($text);
?>
PHP Code:
<?php
$text[1] = "Hello World!";
$text[2] = "Hello Monkey!";
echo ($text[1]);
echo ($text[2]);
?>
Result is Hello World! Hello Monkey, written to the page. The variable is the same however the instances of them are different. Note the [1] and [2] next to them.
Hope you find it simple and easy to understand.
Author: Zenax


LinkBack URL
About LinkBacks
Reply With Quote









