errors in php class
<p>I built the following php class file, it seems not working at all, I am not sure what is my mistake, so if anybody could point me out, any help will be greatly appreciated!</p>

<pre><code>&lt;?php
  class  Arrayfromcsv
   {

       public $newrow = array();
       public $i=0;
       public $c=0;

   public function readCsv($file)
  {
         if(($handle = fopen($file, "r")) != FALSE) //open the csv file
 {      
    while (($data = fgetcsv($handle, 1000, ",")) != FALSE) //loop through each line      from csv file and store each line elements into array
  {  
   $num = count($data);  //get the size of each line array

  for ($this-&gt;c=0; $this-&gt;c &lt; $num; $this-&gt;c++) 
  {   
         }
    }
  } 
 fclose($handle); //close file pointer
  } 
   return this-&gt;newrow;    
  }



 }

  ?&gt;
   do I need to declare every varible I used in the php class in the beginning?
</code></pre>
