title: using same namespace php, Call to undefined function
body: <p>using same namespace php</p>
  
  <p>I have this files in the same folder :</p>
  
  <p><em>OtherFunctions.php</em></p>
  
  <pre><code>&lt;?php
  namespace Pack\sp;
  $Tble = NULL;
  
  function SetTble($tble) {
    global $Tble;
    $Tble = $tble;
  }
  
  function GetTble() {
    global $Tble;
    return $Tble;
  }
  
  function Funct0($Str0, $Str1) {
    return $Str0 == $Str1;
  }
  
  function Funct1($Arg) {
    return "The Value is ".$Arg;
  }
  //... from 0 to 16
  function Funct16($Arg) {
    return "The Value is ".$Arg;
  }
  ?&gt;
  </code></pre>
  
  <p><strong>How to call all functions contained in this file?</strong></p>
  
  <p>In one class File <em>SubClass.php</em> I have this:</p>
  
  <pre><code>&lt;?php
  namespace Pack\sp;
  class SubClass {
    public $CArg = "";
  }
  ?&gt;
  </code></pre>
  
  <p>In other class File <em>LeadClass.php</em>
  I have this:</p>
  
  <pre><code>&lt;?php
  namespace Pack\sp;
  use \Pack\sp\SubClass;
  require_once("OtherFunctions.php");
  class LeadClass {
    public function __construct($Name) {
      echo("_._");
      $NewSC = new SubClass();
      $NewSC-&gt;CArg = $Name;
      SetTble($Name);
      echo("ini:".GetTble().":end");
    }
  }
  ?&gt;
  </code></pre>
  
  <p>I want call all function in one instruction of OtherFunctions.php File, but I don't kno how to do it....</p>
  
  <p><strong>I trying to replicate this message in other code</strong>
  Fatal error: Call to undefined function GetTble() in C:...\LeadClass.php on line 10</p>
  
  <p><strong>But, I'm obtaining blank page</strong> </p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>Was added the line:</p>
  
  <pre><code>require_once("OtherFunctions.php"); 
  </code></pre>
  
  <p>And was replaced the line:</p>
  
  <pre><code>require_once("SubClass.php");
  </code></pre>
  
  <p>by the line:</p>
  
  <pre><code>use \Pack\sp\SubClass;
  </code></pre>
  
  <p>in <em>LeadClass.php</em> File.</p>
  
  <p><strong>But, I'm obtaining blank page</strong> </p>