I tried to do somthing like that:
$cat1 = array(\'hello\', \'everyone\'); $cat = array(\'bye\', \'everyone\'); for($index = 0; $index < 2; $index++) { echo $
You can't reference $index like that, it isn't an array.
echo $cat[$index];
is what you want to do.