NYCPHP Meetup

NYPHP.org

[nycphp-talk] Optimal Object, property, variable passing strategy between classes

csnyder chsnyder at gmail.com
Thu Jul 14 15:04:35 EDT 2005


On 7/14/05, Leila Lappin <damovand at yahoo.com> wrote:
> In C++ we used be able to declare a
> parameter as constant and prevent it from being
> modified.  I'm not sure if
> 'const'ness is possible in PHP.

Oh yeah, check out define().

define( 'WEB_ROOT', '/var/www/html' );



More information about the talk mailing list