function get_tags_by_criteria($gender=\"%\", $min_age_of_birth=\"%\", $max_age_of_birth=\"%\", $country=\"%\", $region=\"%\", $city=\"%\", $tag=\"\") {
There is no named parameter passing in PHP. Generally if you have more than about 4 parameters and lots of them are optional you might want to consider using an array or object instead:
function get_tags_by_criteria($args) {
...
}
get_tags_by_criteria(array('gender' => 'M', 'tag' => 'php'));
You can explicitly set the parameters allowed by using an object instead.