View Full Version : function that returns..
Dimava
Sat 14th Sep '02, 12:03am
I need to make a simple function like a + b, so if this code is executed:
$abc = funAdd ( $a, $b );
i just dont know what to put into the function
DeJaVu
Sat 14th Sep '02, 1:11am
i dont really understand your question but:
<?php
$abc = funADD($a, $b);
function funADD($a, $b){
($a + $b);
return $abc;
}
?>
rylin
Sat 14th Sep '02, 1:41pm
Originally posted by Dimava
I need to make a simple function like a + b, so if this code is executed:
$abc = funAdd ( $a, $b );
i just dont know what to put into the function
function funAdd($a, $b) { return (int)$a + (int)$b; }
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.