note 80284 added to control-structures.declare

From: Date: Tue, 08 Jan 2008 09:49:59 +0000
Subject: note 80284 added to control-structures.declare
Groups: php.notes 
Request: Send a blank email to php-notes+get-134939@lists.php.net to get a copy of this message
If you misspell the directive, you won't get any error or warning. The declare block will simply act as a nest for statements: <?php declare(tocks="four hundred") { // Has no affect on code and produces // no error or warning. } ?> Tested in php 5.2.5 on XPsp2 ---- Server IP: 209.41.74.194 Probable Submitter: 71.92.131.234 ---- Manual Page -- http://www.php.net/manual/en/control-structures.declare.php Edit -- https://master.php.net/note/edit/80284 Del: integrated -- https://master.php.net/note/delete/80284/integrated Del: useless -- https://master.php.net/note/delete/80284/useless Del: bad code -- https://master.php.net/note/delete/80284/bad+code Del: spam -- https://master.php.net/note/delete/80284/spam Del: non-english -- https://master.php.net/note/delete/80284/non-english Del: in docs -- https://master.php.net/note/delete/80284/in+docs Del: other reasons-- https://master.php.net/note/delete/80284 Reject -- https://master.php.net/note/reject/80284 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134939) next »