<?php
$wordFrequencyArray = array();
function countWords($file) use($wordFrequencyArray) { //error here
/* get content of $filename in $content */
$content = strtolower(file_get_contents($filename));
这是我正在使用的代码片段。
我在第 3 行遇到错误。我有所有匹配的大括号。可能出了什么问题?