title: If a string is empty PHP
body: <p>I am trying to create an if-statement to show content if it is not empty. It currently shows the if is empty value.</p>
  
  <pre><code>$openHomeStart = '2012-11-10T01:00:00Z';
  
  if(!empty($openHomeStart)){
      echo 'value';
  }else{
      foreach ($openHomeTimes as $time){
          $openHomeDetails .= $time;
      }       
  }
  </code></pre>