title: Checking Array element using if condition
body: <p>Checking Array element using if condition.</p>
  
  <pre><code> $investor_array = explode(",",$project[project_investor_id]);
  
                         foreach ($investor_array as $investor) {
  
                             echo $investor;
  
                              if($investor!==$user_data['id']){
  
                                   header('Location: error.php');
                                   exit;
                               } 
                         }  
  </code></pre>
  
  <p>Please let me know how this make work if the $investor_array is like 1,26,29,30,39,48
  and my $user_data['id'] = 26</p>
  
  <p>Updates:
  On my app investor can login and see their project. But they can check other project by changed the ID like </p>
  
  <pre><code> http://192.168.1.100/srscrm/project-details-user.php?project=34
  </code></pre>
  
  <p>Thank You</p>