note 100663 deleted from language.functions by thiago

From: Date: Thu, 28 Oct 2010 17:45:58 +0000
Subject: note 100663 deleted from language.functions by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173577@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- <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>

« previous php.notes (#173577) next »