I tried to do somthing like that:
$cat1 = array(\'hello\', \'everyone\'); $cat = array(\'bye\', \'everyone\'); for($index = 0; $index < 2; $index++) { echo $
If you insist on doing it this way...
echo ${'cat' . $index}[1];