title: How to cut sentence into words and list the index of each word?
body: <p>I really need help. I'm really sorry because I'm a beginner in PHP coding.
  I want to cut each word in a sentence, and list the index of each word.</p>
  
  <p>Example sentence:</p>
  
  <pre><code>I want buy a new shoes this weekend.
  </code></pre>
  
  <p>I want my output like this:</p>
  
  <pre><code>[0] I , [1] want, [2] buy, [3] a, [4] new, [5] shoes, [6] this, [7] weekend
  </code></pre>
  
  <p>How would I accomplish this in PHP?</p>
  
  <p>Thank you.</p>