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.

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.