Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将接收到的数组值拆分为新数组?
所以从这里:
[["+","+","+"],["-","+","+"],["*","+","+"],["\/","+","+"],
对此:
["+"],["+"],["+"],["-"],["+"],["+"],["*"],["+"],["+"],
有人能帮我吗?
通过循环来展平你的数组
$aFlattened = array(); foreach($aOriginalArray AS $aOperators){ $aFlattened = array_merge($aFlattened, $aOperators); }