note 121321 deleted from language.namespaces.definition by cmb

From: Date: Fri, 13 Mar 2020 16:23:46 +0000
Subject: note 121321 deleted from language.namespaces.definition by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214326@lists.php.net to get a copy of this message
Note Submitter: syed_992 at hotmail dot com ---- namespace declare must be starting of the script, only php tag can be written before namespace like this <?php namespace test; //this is right way class Testclass{/*****/} function test(/****/){} ?> if you used any other code like html tag or any javascript etc then it gives fatal error. Example: <html> <head></head> <body> <?php namespace test; //Fatal Error class Testclass{/*****/} function test(/****/){} ?>

« previous php.notes (#214326) next »