Ver original<?php$string = "juan, 18, 5, pedro";preg_match_all("/\d+/", $string, $match);var_dump($match);?>