{"name":"BIS_fnc_arrayPushStack","operator":null,"title":"BIS fnc arrayPushStack","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_arrayPushStack","revid":327475,"updated":"2022-07-12T22:13:25Z","groups":["Arrays"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"This function is similar to the array push function; however, it pushes the contents of an array onto the stack array.\n\n> [!NOTE]\n> **Arma 3:** Use append or pushBack instead","syntaxes":[{"syntax":"[array1, array2] call BIS_fnc_arrayPushStack","since":null,"effect":null,"exec":null,"params":[{"name":"array1","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"array1: Array"},{"name":"array2","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"array2: Array"}],"returns":{"type":"Array","types":["Array"],"description":"the modified array1","text":"Array - the modified *array1*"}}],"examples":[{"text":"```sqf\nprivate _array = [0,1,2];\n[_array, [3,4,5]] call BIS_fnc_arrayPushStack; // _array is [0,1,2,3,4,5]\n```","code":["private _array = [0,1,2];\n[_array, [3,4,5]] call BIS_fnc_arrayPushStack; // _array is [0,1,2,3,4,5]"]},{"text":"```sqf\nprivate _array = [[5, 6, 7], [8, [9], 10]] call BIS_fnc_arrayPushStack; // _array is [5, 6, 7, 8, [9], 10]\n```","code":["private _array = [[5, 6, 7], [8, [9], 10]] call BIS_fnc_arrayPushStack; // _array is [5, 6, 7, 8, [9], 10]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_arrayPush","pushBack","append"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Arrays","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}