×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: PHP
Posted by: Erik Owens
Added: Feb 10, 2015 2:30 AM
Views: 17
Tags: no tags
  1. <?php
  2.  
  3. $env = $app->detectEnvironment(array(
  4.  
  5.     'local'      => array('your-machine-name'),
  6.     'production' => array('production'),
  7.  
  8. ));
  9. echo "ENV:".$env;
  10. ?>