<? $text = "a, o, p"; $fruitarray = preg_split( "/, | and /", $text ); print "<pre>\n"; print_r( $fruitarray ); print "</pre>\n"; ?>