note 100663 added to language.functions
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 28 Oct 2010 17:45:16 +0000 |
| Subject: | note 100663 added to language.functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173576@lists.php.net to get a copy of this message | ||
<html>
<head>
<title> Assignment 8 </title>
</head>
<?php
function BrushingTeeth($toothbrush_type, $toothpaste_type) //function defined along with two
variables
{
print("
Pickup $toothbrush_type toothbrush <br />
Turn on water <br />
Put $toothbrush_type toothbrush under running water to wet bristles <br />
Turn off water <br />
Pickup $toothpaste_type toothpaste <br />
Open $toothpaste_type toothpaste <br />
Squeeze a small amount of $toothpaste_type toothpaste onto $toothbrush_type toothbrush bristles
<br />
Close $toothpaste_type toothpaste <br />
Put down $toothpaste_type toothpaste on counter <br />
Open mouth and show teeth <br />
Move $toothbrush_type toothbrush up and down and side to side on the front of the top teeth for 30
seconds <br />
Move $toothbrush_type toothbrush up and down and side to side on the front of the bottom teeth for
30 seconds <br />
Move $toothbrush_type toothbrush up and down and side to side on the back of the top teeth for 30
seconds <br />
Move $toothbrush_type toothbrush up and down and side to side on the back of the bottom teeth for
30 seconds <br />
Remove $toothbrush_type toothbrush from mouth <br />
Spit $toothpaste_type toothpaste out of mouth into sink <br />
Turn on water <br />
Rinse $toothbrush_type toothbrush under running water <br />
Place $toothbrush_type toothbrush in toothbrush holder <br />
Cup hand and put under running water <br />
Bring hand up to mouth and empty water from hand into mouth <br />
Swish water around in mouth <br />
Spit water into sink <br />
Smile <br /> <br /> <br />");
} //print statement with break tags to make it all nice and readable. Variables scattered
throughout as necessary
BrushingTeeth("manual", "mint"); //calling the function #1
BrushingTeeth("automatic", "cinnamon"); //calling the function #2
?>
</body>
</html>
----
Server IP: 69.147.83.197
Probable Submitter: 67.51.164.100
----
Manual Page -- http://www.php.net/manual/en/language.functions.php
Edit -- https://master.php.net/note/edit/100663
Del: integrated -- https://master.php.net/note/delete/100663/integrated
Del: useless -- https://master.php.net/note/delete/100663/useless
Del: bad code -- https://master.php.net/note/delete/100663/bad+code
Del: spam -- https://master.php.net/note/delete/100663/spam
Del: non-english -- https://master.php.net/note/delete/100663/non-english
Del: in docs -- https://master.php.net/note/delete/100663/in+docs
Del: other reasons-- https://master.php.net/note/delete/100663
Reject -- https://master.php.net/note/reject/100663
Search -- https://master.php.net/manage/user-notes.php