note 118588 deleted from language.functions by salathe

From: Date: Tue, 02 Aug 2016 11:58:43 +0000
Subject: note 118588 deleted from language.functions by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206155@lists.php.net to get a copy of this message
Note Submitter: abubakarwaryah786 at gmail dot com ---- if the value of the argument within the function is changed, it does not get changed outside of the function. $a=10; $b=13; function add($a,$b){ echo "The Sum of $a+$b= ", $a+$b, "<br />"; $a=5; $b=10; echo "The sum is=" ,$a+$b , "<br />" ; } add($a,$b); echo $a+$b;

« previous php.notes (#206155) next »