note 53591 added to language.oop5.visibility

From: Date: Mon, 06 Jun 2005 22:14:49 +0000
Subject: note 53591 added to language.oop5.visibility
Groups: php.notes 
Request: Send a blank email to php-notes+get-90028@lists.php.net to get a copy of this message
You may define grouped variables separated by commas if they have the same visibility. This works for both initialized and uninitialized variables. <? class Window { public $x = 0, $y = 100, $width = 1024, $height = 768; } ?> Handy if no comments are required or you're inside a DocBlock. ---- Manual Page -- http://www.php.net/manual/en/language.oop5.visibility.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53591 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53591&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53591&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53591&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53591&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53591&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53591&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90028) next »