Question : PHP: Accessing function from class

My code gives an error:
Fatal error: Call to undefined function xyz()
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
<?php

class zooph extends foobar {

  function parse() {
   return xyz($this->content);
  }

  public function xyz () {
   return true;
  }

}

?>

Answer : PHP: Accessing function from class

It looks like you might be returning the actual text method and not calling it. Try changing the line to this:
1:
var filename = $(this).find("fileName").text();
Random Solutions  
 
programming4us programming4us