word 1 word 2 word 3 word 4
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
I mean do I have to do
<?PHP
$items = array();
$items['word 1'];
$items['word 2'];
$items['word 3'];
$items['word 4'];
?>
UPDATE got it thanks
<?php
$items = "word1 word2 word3 word4";
$items = explode(" ", $items);
echo $items[0]; // word1
echo $items[1]; // word2
?>