note 99784 added to language.functions
| From: | aaron-inc at charter dot net | Date: | Mon, 06 Sep 2010 18:43:15 +0000 |
| Subject: | note 99784 added to language.functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172342@lists.php.net to get a copy of this message | ||
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();
?>
----
Server IP: 208.69.120.55
Probable Submitter: 97.81.59.213
----
Manual Page -- http://www.php.net/manual/en/language.functions.php
Edit -- https://master.php.net/note/edit/99784
Del: integrated -- https://master.php.net/note/delete/99784/integrated
Del: useless -- https://master.php.net/note/delete/99784/useless
Del: bad code -- https://master.php.net/note/delete/99784/bad+code
Del: spam -- https://master.php.net/note/delete/99784/spam
Del: non-english -- https://master.php.net/note/delete/99784/non-english
Del: in docs -- https://master.php.net/note/delete/99784/in+docs
Del: other reasons-- https://master.php.net/note/delete/99784
Reject -- https://master.php.net/note/reject/99784
Search -- https://master.php.net/manage/user-notes.php