title: If condition not working with strpos
body: <p>I created custom function <code>OutputMessage</code> from where i'm inserting error message with its <code>ClassStyle</code> like this <code>Error: image upload failed!</code> and then i'm exploding string and split class from it add in to <code>div class</code> but my function is not working fine.</p>
  
  <pre><code>function OutputMessage($Message=''){
      if($Message){
          $Postion = strpos($Message,":");
          if($Postion !== TRUE){
              return sprintf('&lt;div class="alert alert-default"&gt;%s&lt;/div&gt;',$Message); 
          }else{
              $Message = explode(": ",$Message);
              return sprintf('&lt;div class="alert alert-%s"&gt;%s&lt;/div&gt;',strtolower($Message[0]),$Message[1]); 
          }
      }else{
          return "";
      }
  }
  </code></pre>
  
  <p><code>$Position</code> check is not working because i'm passing Message with it's class but it's still returning default class</p>