I'm pretty sure I just missed this in the manual or Googling, but I can't find a solid answer for the life of me -- if you use a class constant in another PHP file, do you have to require the class in that second file? As in, which one of these is correct?
<?php // File MyClass2 require_once( MyClass.php ); doSomething( MyClass:MYCONSTANT ); ?>
<?php // File MyClass2 doSomething( MyClass:MYCONSTANT ); ?>
EDIT: I just realized I should probably mention, I'm using PHP 5.3.
This post has been edited by Zel2008: 16 May 2013 - 11:04 AM