Jump to content
Sign in to follow this  
Thlitmi

[SOLVED] Syntax way: $a[$n]=StringLen($a2[$a3[$n]])

Recommended Posts

Thlitmi

$array[$number]=StringLen($array2[$array3[$number]])

Is not a valid syntax.

But I do not know how else I would solve this problem.....

I do not know under what name of "something" I should search help abou this problem...

Index of array2 is defined by values of array3 , how to do it ?

//edit:

And of-course, I work with this in loop, where $number is not static)

Edited by Thlitmi

Share this post


Link to post
Share on other sites
trancexx

Your problem is very likely semantics since that's perfectly valid syntax.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
Thlitmi

That should mean,that I have error somewhere else .. !

Share this post


Link to post
Share on other sites
Newb

That should mean,that I have error somewhere else .. !

Post source for more help then.

I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

Share this post


Link to post
Share on other sites
Thlitmi

$number[x] is sometimes equal to number -1

Thats not good, because there is no array index number -1

I will try to filter it to see if it'll help.

Share this post


Link to post
Share on other sites
Thlitmi

After applying the fiter, it worked :graduated:

So the error is, that one of my functions returned value that can not be used for array. It was like invisible error....

[sOLVED]

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.