|
|
|
|
|
by danaris
204 days ago
|
|
> you cant return an typed array from a function, witch is just really bad. Why is it bad? In particular, why is it worse than not being able to declare a typed array in your current scope? (I understand the basic argument in favor of typed arrays, but I also understand why PHP would choose not to go that route; I'm not sure I see how it's worse to not be able to return one from a function, given that they don't exist elsewhere.) |
|
A even more simpler example is An array of some sort of Item. I cant return array(Item), but i only can return an array.