note 60980 deleted from function.return by bjori
| From: | bjori@php.net | Date: | Fri, 28 Apr 2006 14:29:32 +0000 |
| Subject: | note 60980 deleted from function.return by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109990@lists.php.net to get a copy of this message | ||
Note Submitter: moslehi<atsign>gmail<dot>com
----
This might be simplest example to return a value in defined function :
<?
function sumvars($var1,$var2){
//return $var1+$var2;
}
$x = 3;
$y = 5;
echo sumvars($x,$y);
?>
Try to uncomment line 3.
(Arash Moslehi)