title: PHP if statement with strlen (not working as expected)
body: <pre><code>&lt;?php if(strlen($r['body'] &lt;= '74')): ?&gt;
  &lt;?php echo $r['body']; ?&gt;
  &lt;?php else: ?&gt;
  &lt;?php echo substr($r['body'], 0, 74) ."..."; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>when <code>$r['body']</code> == more than 74 chars everything works as expected but as soon as
  <code>$r['body']</code> == less than 74 chars it still attaches "..."</p>
  
  <p>I can work out what i have been doing wrong?</p>