title: Setting environment variables with the built-in PHP web server
body: <p>PHP 5.4 supports a <a href="http://php.net/manual/en/features.commandline.webserver.php">built-in web server</a> for development purposes.  The app we are developing is configured via environment variables.</p>
  
  <p>With Apache you'd do this:</p>
  
  <pre><code>SetEnv FAVORITE_COLOR white
  </code></pre>
  
  <p>With the normal CLI you can do this:</p>
  
  <pre><code>$ export FAVORITE_COLOR=black
  $ php -a
  php &gt; echo $_SERVER['FAVORITE_COLOR'];
  </code></pre>
  
  <p>Is there a way to set these variables for the built-in web server?</p>