PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have PHP 5 on my local server...and run non-typed code all the time...hasn't choked, so I assume it is???
Nice idea I suppose...the parser chokes then if I pass a type string to a argument which is of type array?
I like the idea...as I prefer working with strict types...just confused the *(&#$^& because I've become so accustomed to not caring about types in PHP...
Figured it was people coming from C++ just making their own code more explicit...in forums, etc...
As a result of the thread dae just posted, I have begun doing this too... it keeps me disciplined... by that I mean it prevents me from doing stupid things with my code.
when you hit a word that does type hinting in dreamweaver it highlights it some hard to read color and i remembered the reason that I thought it supported those other types was because it highlighted them the same ugly teal color as object. if it doesn't support those types then i wonder why it highlighted them ??