<?php
$wordFrequencyArray = array();
function countWords($file) use($wordFrequencyArray) { //error here
/* get content of $filename in $content */
$content = strtolower(file_get_contents($filename));
これが私が使用しているコードのスニペットです。
3行目でエラーが発生します。一致する中括弧がすべてあります。何が問題なのですか?