20,741
edits
m (http://wiki.flightgear.org/Namespaces_and_Methods) |
mNo edit summary |
||
| Line 98: | Line 98: | ||
* bearing | * bearing | ||
Now, to access any of these fields, we would use the "dot notation" by first specifying the name of the enclosing context (which is really just a fancy word for the name of the hash) and the name of the field we are interested in: | Now, to access any of these fields, we would use the "dot notation" by first specifying the name of the enclosing context (which is really just a fancy word for the name of the hash) and the name of the field we are interested in. You could read this as: LOCATION.FIELD (i.e. get FIELD out of location). | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||