User Tools

Site Tools


php_first_lesson

This is an old revision of the document!


PHP First Lesson

This is suitable for people who are just learning programming. This page is a record of what Roger and I were able to accomplish in the first lesson. Charles was there too, but he was fated to drop out because he could not type very fast.

1. Hello World

Run this. What does it do? What is ECHO?

<?php
	echo "Hello, world!\n";
?>

echo.php

Another example.

<?php

	echo "Hello, my name is Appledog!\n";

?>

2. roger.php

<?php
	echo "<---- he is Roger!\n";
	echo "I am appledog! wheee!\n";
	echo "He is Charles! ------>\n";
?>
php_first_lesson.1728025181.txt.gz · Last modified: 2024/10/04 06:59 by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki