Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ALL,
I am very new to programming..I have a 2D array namely A : and it is filled like this:

A
+0 (i)
+0 (j)
checklevel
name
Priority
+1
checklevel
name
Priority



now I want to access to the checklevel element and check it if it is 1 or not....

to access I used:
if ($A[i[j]]["checklevel"]==1) {
...
}

but it gives me null....

any sugesstion? :(
Posted

1 solution

You should use $A[$i][$j]['checklevel']
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900