Skip to content

Instantly share code, notes, and snippets.

@KnowTheCodePro
Created February 26, 2016 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KnowTheCodePro/ff86d38ef07a30d53bee to your computer and use it in GitHub Desktop.
Save KnowTheCodePro/ff86d38ef07a30d53bee to your computer and use it in GitHub Desktop.
PHP Conditional Expression - Anatomy of a Conditional Expression
<?php
namespace KnowTheCode;
function demo ( $post_name ) {
if ( $post_name == 'docx' ) {
// do stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment