How do I convert an array like this:
array ( [0] => dog [1] => cat [2] => goat [3] => pig [4] => gorilla )
Into this:
array(array('dog'), array('cat'), array('goat'), array('gorilla'));
I’m trying to get started with codeIgniter’s table class and it needs to be the format like the one above so that it will work.
1 Answer