Howto:Start using vectors and hashes in Nasal: Difference between revisions

Jump to navigation Jump to search
m
m (add a vector based approach)
Line 184: Line 184:
== A hash based version ==
== A hash based version ==


Now, to wrap these fields into a single variable that serves as the container for other variables, we could use a Nasal hash. Consider the following empty hash:
Now, to wrap these fields into a single variable that serves as the container for other variables, we could use a Nasal hash and start completely from scratch.  
 
Consider the following empty hash:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">

Navigation menu