title: how do I say "If a string contains "x" in PHP?
body: <p>I have a variable:</p>
  
  <pre><code>$testingAllDay = $event-&gt;when[0]-&gt;startTime;
  </code></pre>
  
  <p>This variable will be this format if it is "All Day":</p>
  
  <pre><code>2011-06-30
  </code></pre>
  
  <p>It will be this format if it is not "All Day":</p>
  
  <pre><code>2011-07-08T12:00:00.000-05:00
  </code></pre>
  
  <p>I'm wanting to do something like:</p>
  
  <pre><code>if ($testingAllDay does not contain "T"){
     $AllDay = 1;
     } else {
     $AllDay = 0;
  }
  </code></pre>
  
  <p>Do I need to use a <code>strstr()</code> here, or is there another function that does this?  Thanks!</p>