title: How to count space in a text statement in PHP
body: <p>How can we count space between text in PHP?</p>
  <pre><code>example: hi how are you?
  
  spaces: 3
  </code></pre>
  <p>Is there a way to count spaces?</p>
  <p>Language: Only PHP</p>