title: php in_array() or array_search() not working
body: <p>I am using a simple php script to look for an element in an array like</p>
  
  <pre><code>    $restricted = array('root/base', 'root2' ); 
      print_r($restricted);
      if( array_search('root/base', $restricted) ){
          echo "1";
      } else {
          echo "0";
      }
  </code></pre>
  
  <p>But I am always getting the following output</p>
  
  <pre><code>Array ( [0] =&gt; root/base [1] =&gt; root2 ) 0
  </code></pre>
  
  <p>This means that the array_search is failing to find the element in the given array. Can anybody show some light on whats happening?</p>
  
  <p>I tried to replace array_search() with in_array() also. But that too returned the same error.</p>