As this Tips section of the web site implies, you will find a few hard-to-remember or less than obvious PHP programming techniques.

Return an HTTP Status Code:

http_response_code( 205 );
  • A 500 Server Error is set by Apache for any HTTP Status Code returned by PHP that Apache does not recognize


Display MySQL Version:

global $wpdb;
echo '<p>MySQL Version ' . $wpdb->get_var( 'SELECT VERSION();', 0, 0 ) . '</p>';