Sum two arrays
| From: | Larry_Li at amat dot com | Date: | Sat, 12 Apr 2003 08:28:15 +0000 |
| Subject: | Sum two arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143602@lists.php.net to get a copy of this message | ||
$a=array("01"=>10,"02"=>20,"04"=>40);
$b=array("01"=>10,"03"=>30,"05"=>50);
$c=$a+$b;
$c=array("01"=>20,"02"=>20,"03"=>30,"04"=>40,"05"=>50);
Thanks,
Larry