is there a way to make PHP variable in another <?php ?> scope
<p>I'm trying to use variable I have in <code>&lt;?php ?&gt;</code> in another <code>&lt;?php ?&gt;</code></p>

<p>for example,</p>

<pre><code>   &lt;?php 
      $helloWorld = "Hello World";
    ?&gt;

    ... some HTML

        &lt;?php 
       function echoHello(){
           echo $helloWorld;
       }
    ?&gt;
</code></pre>

<p>The variable is not variable in the second part. How to make the variable visible so I can access later when I want to execute some PHP script. </p>
