php tips [2008-03-18 18:36:28]


PHP: Tips & Tricks of Learning Ternary Operators


By bloid(The DZone community)

I started using ternary operator logic about six months ago and notice myself using shorthand if/else logic all the time. It shortens my code, the time to write it, and makes me look smarter to the mustaches.


DZone: latest front page - http://www.dzone.com/links/


Finding difference of days between two dates in PHP


By Roshan

Yesterday, my friend Roshan was was struggling to find the days difference between to two dates in PHP. Well, after a while I came up with the solution for him. The date format he’s using was “YYYY-MM-DD”, which is the standard format


Roshan Bhattarai’s Blog - PHP… - http://roshanbh.com.np




.

Leave a Reply

You must be logged in to post a comment.