如何将数组值拆分为新数组? [重复]

This question already has an answer here:

how to split received values of an array into a new array?

so from this:

[["+","+","+"],["-","+","+"],["*","+","+"],["\/","+","+"],

to this:

["+"],["+"],["+"],["-"],["+"],["+"],["*"],["+"],["+"],

can someone help me?

</div>

Flatten your array by looping through it

$aFlattened = array();
foreach($aOriginalArray AS $aOperators){
   $aFlattened = array_merge($aFlattened, $aOperators);
}