Jump to content

Recommended Posts

Posted (edited)

Hi!

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 ?

Next

Edited by scon
Posted

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

What makaule said :mellow:

-jaenster

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...