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