// A function to find the total number of chapters, and list the chapters by name. function chapters($content) { $subArray = $this->returnSubStrings($content, "", ""); $subStr = $subArray[0]; $chapters[0] = substr_count($subStr, '