title: Call PHP Function inside ECHO inside Function
body: <pre><code>function footer(){
      echo "
      &lt;script src='&lt;?php echo JS_DIR ?&gt;/nav.min.js'&gt;&lt;/script&gt;
      ";
  }
  </code></pre>
  
  <p>Is there a way I can call this JS_DIR function from within a php echo, or alternately output:</p>
  
  <pre><code>&lt;script src='&lt;?php echo JS_DIR ?&gt;/nav.min.js'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>...from the footer function?</p>