Dynamic Arrays.
Hello, I read somewhere that this method is incorrect so I'm hoping for someone to tell me the correct one.
What I'm trying to do is not really important, just trying to load Coordinates from an .ini file. Format of .ini: Quote:
If you know a better method than this, feel free to comment. Code:
Quote:
|
Re: Dynamic Arrays.
[][] instead of [[]]
|
Re: Dynamic Arrays.
Quote:
Like this? PHP Code:
|
Re: Dynamic Arrays.
Code:
Code:
|
Re: Dynamic Arrays.
Quote:
By the way, is there any more efficient way rather than my method? What I did is: - Read the full origin string from the file - Strbreak it into 2 pieces - Strbreak the 2nd part and then win the 3rd one. But I feel like it's inefficient.. Thanks a bunch! |
Re: Dynamic Arrays.
Save like this:
Quote:
|
Re: Dynamic Arrays.
Quote:
EDIT: I'm so stupid, I didn't know parse would work, I was using strbreak for nothing lol. Parse() did the job :) |
| All times are GMT -4. The time now is 01:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.