title: php check if variable length equals a value
body: <p>Need to check if <strong>$message</strong> length is 7 characters or less, if so, do action A, if not, do action B. Is this correct syntax? I think im doing something wrong?</p>
  
  <pre><code>&lt;?php
  
  if (strlen($message) &lt;= 7) {
      echo $actiona;
  } else {
      echo $actionb;
  }
  
  ?&gt;
  </code></pre>