decided to do new thread to avoid confusion.
ascan, even though is powerfull tool, needs to be called multiple times in most of the uses because there are more than one matches and all need to be found.

I would thus suggest that aScan() would be enhanced to return optionally array of the results.

$matches = ascan($array,"some",...,1) ;last argument, return all occurences
for each $match in $matches
$match ","

would result in "0,3"

download KiXnet