Initialize Class with Constant

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


is it possible to define a constant - lets say


and then initialize the Shows class with

$obj = new CLASS_NAME();

This obviously doesn't work, but how would i have to do it to make it
Best regards,

Nikolai Onken

Re: Initialize Class with Constant

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline