I'm stuck on this one. Hope you can help:
I have an array from mysql results something like:
$array = array(
these_comments =>comments,
these_image=>image,
these_rating=>rating,
these_measurements=>measurements,
something_comments=>more comments,
something_image=>another image,
something_rating=>another_rating);
I need to be able to separate the "these" keys and values from the "something" keys and values into new arrays like:
$these = array(
these_comments =>comments,
these_image=>image,
these_rating=>rating,
these_measurements=>measurements);
$something = array(
something_comments=>more comments,
something_image=>another image,
something_rating=>another_rating);
so I can resort the new arrays and display. Because the original array is a result from a mysql query, the number of possible elements is unknown.
I'd insert some sample code, but at this point I've made such a mess I wouldn't know what to show.
Thanks