Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php syntax question

Status
Not open for further replies.

wolf73

Programmer
Feb 12, 2006
93
CA
I am trying to understand this code. I don't undersnatd the sytax here, we are assigning the value "NO" to what?

$GLOBALS['appdata']->statsview[1]['cluster_id'] = "NO";

 
from the notation i would guess that $GLOBALS['appdata'] is an object and statsview is an array that is a property of that object and you are assigning the value of "NO" to that property.
 
it might not be obvious from the post above, but $GLOBALS and statsview are arrays.

$GLOBALS is an array, and the ['appdata'] element of that array has a property called statsview, which is also an array (2-d). They assign 'NO' to the [1]['cluster_id'] index of the statsview array.

Robert Carpenter
Remember....eternity is much longer than this ~80 years we will spend roaming this earth.
ô¿ô
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top