all
I have a dataset of type 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
then I divide this data into 2 groups, which
$groupA = range(1, 5)
$groupB = range(6, 10)
For example, I have $data = array(1, 4), and he will return it to group A. Similarly,,
$data = array(7,8)he will return to me Group B.
So how can I write a script to $data = array(1, 4, 6, 7)return group A and group B to me?
thank
source
share