Posted by Toby Inkster on 12/20/06 07:38
Rik wrote:
> Not possible in heredoc:
> - functions/results
> - constants
>
> The last is a great irritation.
<?php
foreach (get_defined_constants() as $k => $v)
$CONSTANTS[$k] = $v;
print "E_USER_ERROR is {$CONSTANTS['E_USER_ERROR']}.";
?>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|