SiNNuT Posted October 6, 2012 Posted October 6, 2012 A pretty neat quick reference to (modern) PHP. With info for beginners but it can also be of use for those already 'in the know'. http://www.phptherightway.com/ 6
ryan Posted October 7, 2012 Posted October 7, 2012 Thanks for posting this. I also found this a couple of weeks ago through reddit and have been making my way through it. So far seems like all good advice and lots of good best practices. I also like this big 1-page format that remains easy to navigate. Somehow it makes it all seem more approachable. Maybe ProcessWire should have a document like this.
teppo Posted October 7, 2012 Posted October 7, 2012 Should probably be ashamed to admit it, but I wasn't fully aware of how much you can do with built-in filter / sanitize functions and their various options. Lets just say that I could've avoided a lot of RegExp-related headache by checking these out more thoroughly. Many other interesting things mentioned there also -- especially in the testing and caching parts, I bet those will come in handy as reference material. Overall very nice article, so thanks for sharing this SiNNuT!
SiNNuT Posted October 7, 2012 Author Posted October 7, 2012 I'm still relatively new to PHP, so there are quite a few goodies in there for me to study. For example the datetime stuff : http://www.phptherightway.com/#date_and_time http://philsturgeon.co.uk/blog/2012/08/why-php-datetime-rocks Seems like some good stuff.
Recommended Posts