Jump to content
Sign in to follow this  

How to add value in multi dimensional array?

Recommended Posts



I need to fill multi dimensional array from file:

aaa, 23, 34, 345, 123

bbb, 43, 09, 915, 232



Like this

Global $array[100][5] = [["aaa", 23, 34, 345, 123],["bbb", 43, 09, 915, 232]]

How to make it?

For $i=1 To 100 Step 1

; read and split line from file ($var1, $var2, $var3, $var4, $var5) - it's easy :mellow:

_ArrayAdd($array, ? ) ; how include here $var1, $var2, $var3, $var4, $var5 ?


Edited by scon

Share this post

Link to post
Share on other sites

_ArrayAdd doens't work with multi dimensional array's. you should do it your self in this case.

What makaule said :mellow:


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.