I tried to do somthing like that:
$cat1 = array(\'hello\', \'everyone\'); $cat = array(\'bye\', \'everyone\'); for($index = 0; $index < 2; $index++) { echo $
To echo elements inside arrays, you need to be using
echo $cat[$index]
with your example.
I'm not sure what the $index[1] is supposed to be doing? Maybe I have misunderstood your question.
$index[1]