Sumthin like this...
<?PHP
$a=10;
$b=20;
echo add($a,$b)
function($one, $two){
return $one + $two
} // function($one, $two)
?>
*
* Cal Evans
* Journeyman Programmer
* Techno-Mage
* http://www.calevans.com
*
-----Original Message-----
From: me us [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] novice question
Hi
Id reeeeeeaaaaaaaally like to know the syntax for returning results from a
called function to the program that called it;)
<?
program
add($a,$b);
echo"$ab";
?>
===============
<?
function add($a,$b)
{
$ab =$a+$b;
}
return??????????????????????????
?>
Many many thanks
JD
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php