title: Outer Variable Access in PHP Class
body: <p>Consider the following situation</p>
  
  <p>file: ./include/functions/table-config.php
  containing: <code><pre>.
  .
  $tablePages = 'orweb_pages';
  .
  .
  </pre></code></p>
  
  <p>file: ./include/classes/uri-resolve.php
  containing: <code><pre>class URIResolve {
  .
  .
  $category = null ;
  .
  .
  function process_uri() {
  ...
      $this->category = $tablePages;
  ...
  }
  .
  .
  }</pre></code></p>
  
  <p>file: ./settings.php
  containing: <code><pre>.
  .
  require_once(ABSPATH.INC.FUNC.'/table-config.php');
  require_once(ABSPATH.INC.CLASS.'/uri-resolve.php');
  .
  .
  </pre></code>
  Will this work. I mean will the access to $tablePages from process_uri() be acceptable or will it give erronous results.</p>
  
  <p>Please suggest corrections or workarounds if error might occur.</p>