Skip to content

Instantly share code, notes, and snippets.

@Martin1982
Created March 12, 2012 19:21
Show Gist options
  • Save Martin1982/2024106 to your computer and use it in GitHub Desktop.
Save Martin1982/2024106 to your computer and use it in GitHub Desktop.
Constants
<?php
define('MY_CONSTANT_NAME','The value of my constant');
echo MY_CONSTANT_NAME;
// This will show 'The value of my constant' on your screen
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment