| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2015-08-08 22:12 UTC] php at mcq8 dot be
  [2016-01-15 12:37 UTC] danack@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: danack
  [2016-01-15 12:37 UTC] danack@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Description: ------------ The syntax imagined as below (Define And Initiate An Anonymous Class): $object = (new class($param1, $param1){ public $var1 = 'abc' public function test(){ echo $this->var1; } }); $object->test(); out: 'abc' ============ Or Alternatively =================== (new class($param1, $param1){ public $var1 = 'abc' public function test(){ echo $this->var1; } })->test(); out: 'abc'