title: How to echo something outside of function?
body: <p>In the following code I want to <code>echo</code>  <code>green</code> outside of <code>public function</code>.</p>
  
  <pre><code>Public function lol(){
  $green ="green";
  }
  </code></pre>
  
  <p>for example i want to echo <code>$green</code> in the following code.</p>
  
  <pre><code>public function green(){
  echo"this is $green";
  }
  </code></pre>