O'Reilly logo

WordPress 3 Plugin Development Essentials by Everett Griffiths, Brian Bondari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review of PHP functions used

The following is a list of some of the PHP functions and constants used:

  • __CLASS__: PHP constant that contains the name of the PHP class in which it appears.
  • __FILE__: PHP constant that contains the name of the file in which appears.
  • parent::__construct(): A convenient way to run the __construct in the parent class. This statement is only used in a child class.
  • trim(): Removes whitespace from the beginning and end of a string.
  • rand(x,y): Picks a random number between x and y.
  • explode($separator, $str): Separates a string $str into an array by splitting it at each instance of $separator.
  • stripslashes(): Removes backslashes from form-submitted data.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required