3 ms·
PHP also supports other type declarations. But using lots of value objects is a good idea anyway. http://php.net/manual/en/functions.arguments.php#functions.ar
by patricklouys 9y ago
PHP also supports other type declarations. But using lots of value objects is a good idea anyway.
http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration http://php.net/manual/en/functions.arguments.php#functions.a...
- stiGGG 9y agoSince when does PHP has value types? Aren't all the classes reference types or you mean that Array thingie? And it is still the case with type declarations, that they make your code actually slower, because the runtime adds asserts in your code which gets evaluated at runtime?