foreach($_POST['type'] as $key => $value) { //$str = '/\.*\