title: How can I turn a list of items into a php array?
body: <p>word 1
  word 2
  word 3
  word 4</p>
  
  <p>And so on... How can I turn that into a php array, here will be a lot of items so I don't want to write them all out into an array manually and I know there has to be a simple way</p>
  
  <p>I mean do I have to do </p>
  
  <pre><code>&lt;?PHP
  $items = array();
  
  $items['word 1'];
  $items['word 2'];
  $items['word 3'];
  $items['word 4'];
  ?&gt;
  </code></pre>
  
  <p>UPDATE got it thanks</p>
  
  <pre><code>&lt;?php
  
  $items  = "word1 word2 word3 word4";
  $items = explode(" ", $items);
  
  echo $items[0]; // word1
  echo $items[1]; // word2
  ?&gt;
  </code></pre>