First Draft
First Draft of the Example Files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
echo "Hello world";
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "Hello world";
|
||||
?>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* This is a section
|
||||
of multi-line comments
|
||||
which will not be
|
||||
interpreted */
|
||||
?>
|
||||
<?php
|
||||
/* This is a section
|
||||
of multi-line comments
|
||||
which will not be
|
||||
interpreted */
|
||||
?>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php // test1.php
|
||||
$username = "Fred Smith";
|
||||
echo $username;
|
||||
echo "<br>";
|
||||
$current_user = $username;
|
||||
echo $current_user;
|
||||
?>
|
||||
<?php // test1.php
|
||||
$username = "Fred Smith";
|
||||
echo $username;
|
||||
echo "<br>";
|
||||
$current_user = $username;
|
||||
echo $current_user;
|
||||
?>
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$author = "Steve Ballmer";
|
||||
|
||||
echo "Developers, Developers, developers, developers, developers,
|
||||
developers, developers, developers, developers!
|
||||
|
||||
- $author.";
|
||||
?>
|
||||
<?php
|
||||
$author = "Steve Ballmer";
|
||||
|
||||
echo "Developers, Developers, developers, developers, developers,
|
||||
developers, developers, developers, developers!
|
||||
|
||||
- $author.";
|
||||
?>
|
||||
+10
-10
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
$author = "Bill Gates";
|
||||
|
||||
$text = "Measuring programming progress by lines of code is like
|
||||
Measuring aircraft building progress by weight.
|
||||
|
||||
- $author.";
|
||||
|
||||
echo $text;
|
||||
?>
|
||||
<?php
|
||||
$author = "Bill Gates";
|
||||
|
||||
$text = "Measuring programming progress by lines of code is like
|
||||
Measuring aircraft building progress by weight.
|
||||
|
||||
- $author.";
|
||||
|
||||
echo $text;
|
||||
?>
|
||||
+11
-11
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
$author = "Brian W. Kernighan";
|
||||
|
||||
echo <<<_END
|
||||
Debugging is twice as hard as writing the code in the first place.
|
||||
Therefore, if you write the code as cleverly as possible, you are,
|
||||
by definition, not smart enough to debug it.
|
||||
|
||||
- $author.
|
||||
_END;
|
||||
?>
|
||||
<?php
|
||||
$author = "Brian W. Kernighan";
|
||||
|
||||
echo <<<_END
|
||||
Debugging is twice as hard as writing the code in the first place.
|
||||
Therefore, if you write the code as cleverly as possible, you are,
|
||||
by definition, not smart enough to debug it.
|
||||
|
||||
- $author.
|
||||
_END;
|
||||
?>
|
||||
+10
-10
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
$author = "Scott Adams";
|
||||
|
||||
$out = <<<_END
|
||||
Normal people believe that if it ain’t broke, don’t fix it.
|
||||
Engineers believe that if it ain’t broke, it doesn’t have enough
|
||||
features yet.
|
||||
|
||||
- $author.
|
||||
_END;
|
||||
<?php
|
||||
$author = "Scott Adams";
|
||||
|
||||
$out = <<<_END
|
||||
Normal people believe that if it ain’t broke, don’t fix it.
|
||||
Engineers believe that if it ain’t broke, it doesn’t have enough
|
||||
features yet.
|
||||
|
||||
- $author.
|
||||
_END;
|
||||
?>
|
||||
Reference in New Issue
Block a user