Location: PHPKode > projects > phpCAMALEO > common/fun2inc/loadarraydata.inc
<?php
if(!function_exists('loadarraydata'))
{
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	function loadarraydata($rows,&$labels,&$table_field)
	#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	{
		$i=0; $ii=0;
		foreach($rows as $key=>$val)
		{
			unset($tmp_array);
			$tmp_array=$rows[$i];
			$fields_record=count($tmp_array);	# nr. of fields per record
			reset($tmp_array);					# Set to the first array field
			while($tmp_next=each($tmp_array))
			{
				$labels[$ii]=$tmp_next[key];
				$table_field[$ii]=$tmp_next[value];
				$ii++;
			}
			$i++;
		}
		return($fields_record);
	}
}
?>
Return current item: phpCAMALEO