Using of PHP constants in foreach loop
<p>I need to use PHP contants in foreach loop:</p>

<pre><code>define('WEBS', 'http://google.com, http://yahoo.com');
foreach (WEBS as $a) {
    //do something
}
</code></pre>

<p>However I managed to do that by following code, although it works fine but aptana editor shows syntax error. Please guide me how to do that in the correct manner.</p>

<pre><code>foreach (get_defined_constants(true)['user']['WEBS'] as $w) {
//do something
} 
</code></pre>
