Snippets I constantly use.
//-- If variable content matches any key or value in array in_array( $needle, $array_haystack ) // -- Echo a pre formatted array or object echo "<pre>"; print_r( $array ); echo "</pre>";