Code: Select all
class SomeClass
{
private function sortIntoLists($value, $key)
{
echo "Key $key Value $value <br />";
}
private function processText()
{
// Break the text into a word array with the index as their positions
$this->mArrayAllWords = str_word_count($this->mTextForAnalysis, 2);
// Walk through the array and sort the words into the appropriate lists
array_walk($this->mArrayAllWords, "sortIntoLists"); // **** Function does not exist! ****
}
}