human
Write a PHP function that accepts two strings and returns the number of characters in common between the two strings.
Input:
String 1: "hello world"
String 2: "goodbye world"
gpt
function commonCharCount($str1, $str2) {
    $str1_arr = str_split($str1);
    $str2_arr = str_split($str2);
    $intersect = array_intersect($str1_arr, $str2_arr);
    return count($intersect);
}
alpaca_kmeans_100_gpt2_10per_3518