Manipulation of an array
Posted: Fri Mar 09, 2012 2:32 pm
Hey all,
I'm using an array to populate labels for a graph. When I have a lot of keys in the array (user answered a questionnaire many times) there are too many labels in graph and it does not look good.
I want to limit the number of key in the array to 15.
Do you have any ideas about good ways to manipulate the array but leaving the 1'st and last values, and choosing interval keys between them?
Or do you think it will be simpler to do this on mysql level?
Thanks,
I'm using an array to populate labels for a graph. When I have a lot of keys in the array (user answered a questionnaire many times) there are too many labels in graph and it does not look good.
I want to limit the number of key in the array to 15.
Do you have any ideas about good ways to manipulate the array but leaving the 1'st and last values, and choosing interval keys between them?
Or do you think it will be simpler to do this on mysql level?
Thanks,