title: about Simple PHP MVC example
body: <p><a href="https://stackoverflow.com/questions/6022231/simple-php-mvc-example">In there</a>
   exist a simple example of MVC in PHP. the problem is, this example just work when this</p>
  
  <pre><code>$action = $_GET['action'];
  if(function_exists($action) &amp;&amp; !substr($action,0,1)=="_"){
      $action();
  }else{
      echo "&lt;h1&gt;404 Page Not Found&lt;/h1&gt;&lt;p&gt;The page you requested could not be found&lt;/p&gt;";
  }
  </code></pre>
  
  <p>changed to:</p>
  
  <pre><code>    $action = $_GET['action'];
  if(function_exists($action) || !substr($action,0,1)=="_"){
      $action();
  }else{
      echo "&lt;h1&gt;404 Page Not Found&lt;/h1&gt;&lt;p&gt;The page you requested could not be found&lt;/p&gt;";
  }
  </code></pre>
  
  <p><strong>&amp;&amp;</strong> changed to <strong>||</strong>. or completely <strong>!substr($action,0,1)=="_"</strong> removed. What does this line is not allowed to run <strong>$action</strong>?</p>
  
  <p>=======================</p>
  
  <p>Edit: Problem is that router don't work with <strong>&amp;&amp;</strong>!</p>