PHP 忒聊 綴豖 ヶ輛 preg_grep (PHP 4) Description preg_grep() returns the array consisting of the elements of the input array that match the given pattern. Since PHP 4.0.4, the results returned by preg_grep() are indexed using the keys from the input array. If this behavior is undesirable, use array_values() on the array returned by preg_grep() to reindex the values. 瞰赽 1. preg_grep() example // return all array elements // containing floating point numbers $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array); 綴豖 れ萸 ヶ輛 Pattern Syntax 奻珨撰 preg_match_all