note 93498 deleted from language.oop5.typehinting by danbrown
| From: | danbrown@php.net | Date: | Sun, 13 Sep 2009 15:51:40 +0000 |
| Subject: | note 93498 deleted from language.oop5.typehinting by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160503@lists.php.net to get a copy of this message | ||
Note Submitter: archon at somewhere dot com
----
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