note 93498 added to language.oop5.typehinting

From: Date: Sun, 13 Sep 2009 13:42:31 +0000
Subject: note 93498 added to language.oop5.typehinting
Groups: php.notes 
Request: Send a blank email to php-notes+get-160502@lists.php.net to get a copy of this message
kalkamar, you forget that then you need to add if statement: <?php function notypehinting($x) { if (is_array($x)) { return True; } else { return False; } } function typehinting(array $x) { return True; } ?> With array type results was: 0.034576892852783 0.028119802474976 ---- Server IP: 213.186.192.247 Probable Submitter: 95.135.47.132 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.typehinting.php Edit -- https://master.php.net/note/edit/93498 Del: integrated -- https://master.php.net/note/delete/93498/integrated Del: useless -- https://master.php.net/note/delete/93498/useless Del: bad code -- https://master.php.net/note/delete/93498/bad+code Del: spam -- https://master.php.net/note/delete/93498/spam Del: non-english -- https://master.php.net/note/delete/93498/non-english Del: in docs -- https://master.php.net/note/delete/93498/in+docs Del: other reasons-- https://master.php.net/note/delete/93498 Reject -- https://master.php.net/note/reject/93498 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160502) next »