i couldnt find the idea to do what i want
so i decided to ask my question here 🙂
i want select numbers of groups from text with preg_match_all
(itemgroup (index 24813) (group (200 24813)))
(itemgroup (index 2481) (group (50 2461)(100 2471)(150 2491)))
i want the output to be like that
index 24813 => 24813
index 2481 => 2461 / 2471 / 2491
is there any idea how to do it with preg_match_all
Thank You
Try with this code: