note 113708 added to language.oop5.static

From: Date: Tue, 19 Nov 2013 02:45:04 +0000
Subject: note 113708 added to language.oop5.static
Groups: php.notes 
Request: Send a blank email to php-notes+get-197564@lists.php.net to get a copy of this message
In real world, we can say will use static method when we dont want to create object instance. e.g ... validateEmail($email) { if(T) return true; return false; } //This makes not much sense $obj = new Validate(); $result = $obj->validateEmail($email); //This makes more sense $result = Validate::validateEmail($email); ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.oop5.static.php Edit -- https://master.php.net/note/edit/113708 Del: integrated -- https://master.php.net/note/delete/113708/integrated Del: useless -- https://master.php.net/note/delete/113708/useless Del: bad code -- https://master.php.net/note/delete/113708/bad+code Del: spam -- https://master.php.net/note/delete/113708/spam Del: non-english -- https://master.php.net/note/delete/113708/non-english Del: in docs -- https://master.php.net/note/delete/113708/in+docs Del: other reasons-- https://master.php.net/note/delete/113708 Reject -- https://master.php.net/note/reject/113708 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197564) next »