Skip to content

Instantly share code, notes, and snippets.

@erikreagan
Created March 27, 2012 20:15
Show Gist options
  • Select an option

  • Save erikreagan/2219906 to your computer and use it in GitHub Desktop.

Select an option

Save erikreagan/2219906 to your computer and use it in GitHub Desktop.

Revisions

  1. erikreagan created this gist Mar 27, 2012.
    11 changes: 11 additions & 0 deletions constants.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?php

    // get constants defined by the application

    // All constants available
    $constants = get_defined_constants(TRUE);
    // just constants from the app in question
    $app_constants = $constants['user'];

    echo '<pre>';
    print_r($app_constants);