Location: PHPKode > projects > Limbas > openlimbas/dependent/EXTENSIONS/CRM/ext_report.inc
Copyright notice
(c) 1998-2005 Axel Westhagen (hide@address.com)
All rights reserved
This script is part of the LIMBAS project. The LIMBAS project is free software; you can redistribute it and/or modify it on 2 Ways:
Under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
In a Propritary Software Licence http://limbas.com/Lizenzen.33.0.html
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
A copy is found in the textfile GPL.txt and important notices to the license from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!

function array_calculate($el,$typ){
    # sum
    #echo "->".$el;
    if($typ == 1 and is_array($el)){
	foreach ($el as $key => $value){
	#echo $value."-";
	#echo doubleval(str_replace(",",".",$value))."<BR>";
	    $val += doubleval(str_replace(",",".",$value));
	#echo $val."<BR>";
	return $val;
    return 0;

Return current item: Limbas