How to access variable inside a class nested inside a function
<p>Very new to classes in PHP, How can I access the variable from within the class inside a function?</p>

<pre><code> //how can I echo the value of the title variable outside the class?
 echo $title; 
 class myClass {

  function form() {
      echo '&lt;input type="text" value="'.$title.'" /&gt;';
   }

 }   
</code></pre>

<p>Thanks for the help</p>
