SiNNuT Posted October 6, 2012 Share 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 Link to comment Share on other sites More sharing options...
ryan Posted October 7, 2012 Share 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. Link to comment Share on other sites More sharing options...
teppo Posted October 7, 2012 Share 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! Link to comment Share on other sites More sharing options...
SiNNuT Posted October 7, 2012 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts