i do have two dimentional array of data in php.
I do want to add another column with constant to that array for passing tabular data to next program.
i am iterating and adding manually. What can be alternate code?
my code:
if( is_array( $arrSource )){
foreach( $arrSource as &$dataRow){
foreach( $arrColumn as $k=>$v)
$dataRow[$k] = $v;
}
unset( $dataRow );
}