代码:
$record=array('test','test1','test2');
$product = $record[0];
$arr = array(
array( "test", "1", "test5" ),
array( "test5", "3", "test5" )
);
foreach ($arr as $keys => $elms) {
if($product==$elms[0]){
// here need to increase the value of the $elms[1] on one;
// for ex. if $product==$elms[0] in result need get next array:
// $arr = array(
// array( "test", "2", "test5" ),
// array( "test5", "3", "test5" )
// );
}
}
请告诉我如何增加价值?