4 ms·
Oh well, get ready for a world of inconsistencies! Php is a bit of a mongrel (mongrels are great though,) don't expect a beautifully designed language. The
by inthewind 13y ago
Oh well, get ready for a world of inconsistencies! Php is a bit of a mongrel (mongrels are great though,) don't expect a beautifully designed language. The language has been bolted together piecemeal, with a bit of this and that. Function naming style is inconsistant (some with underscores, some without), some parameter patterns feel back to front, in fact don't bother trying to learn too many - rely on your editor and the documentation.
The bulk of my php coding really sits, in foreach loops, if statements (and comparison operators), and the use of arrays. Get to know arrays, build them, loop through them, echo out values, mutate them, they're your friend.
Learn about namespacing, functions and classes. Avoid globals but use the superglobals!
And as with all web programming, understand the browser/server lifecycle of a request. Start with the basics of HTTP.