Return to Snippet

Revision: 1278
at September 27, 2006 10:07 by gdonald


Updated Code
class Obj
{
  public $test;
    
  function cf()
  {
    $this->test = create_function( '', 'echo "Testing";' );
  }
}

$o = new Obj;

$o->cf();

$o->{$test};

Revision: 1277
at September 27, 2006 10:07 by gdonald


Initial Code
class Obj
{
    public $test;
    
    function cf()
    {
        $this->test = create_function( '', 'echo "Testing";' );
    }
}

$o = new Obj;

$o->cf();

$o->{$test};

Initial URL

                                

Initial Description

                                

Initial Title
php create function

Initial Tags
function

Initial Language
PHP