note 99784 deleted from language.functions by danbrown
| From: | danbrown@php.net | Date: | Tue, 07 Sep 2010 14:47:57 +0000 |
| Subject: | note 99784 deleted from language.functions by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172364@lists.php.net to get a copy of this message | ||
Note Submitter: aaron-inc at charter dot net
----
For all of you who are just learning. Here is a basic function:
<?php
// aaron-inc@charter.net is my email.
//I built this script in 7 minites.
function work(){
$s = "scripted";
$year = "year old";
$m = "7 minites.";
$Age = "13";
$num = "5";
$numt = "6";
$boy = "A {$Age} {$year} {$s} this in {$m} ";
if ($num >= $numt){
echo "{$boy}";
echo "<hr>";
echo "{$numt} is less than {$num}";
} else {
echo "{$boy}";
echo "<hr>";
echo "{$numt} is greater than {$num}";
}
}
return work();
?>