title: creating array through class object
body: <p>I want to create a multidimensional array through class object. Don't know the syntax. Kindly guide me regarding that.</p>
  
  <pre><code>class gridcell {
      var $place;
      var $latitude;
  
      $spatial=array();
      $temporal=array();
      $taxi=array();
  
  
      $raiwind = new gridell();
      $raiwind-&gt;place("raiwind");
      $raiwind-&gt;latitude("31.4279");
  </code></pre>
  
  <p>Now I wanted to put the following array in the <code>$raiwind-&gt;$spatial</code><br>
  What would be its synatx. Different objects have different elements in <code>$spatial</code> array.                                                                  </p>
  
  <pre><code>spatial(
      array(
          array(
              'lda',
              '31.4104',
              3
          ),
          array(
              'ali',
              '31.3998',
              3
          ),
          array(
              'multan',
              '31.4675',
              10
          )
      )
  );
  </code></pre>