Archive for September 15th, 2006

September 15th 2006

strtotime() - is it useful?

Every now and then I get e-mails with questions that ask “How can I add X days to a given date?”, “How can I figure the day that corresponds to next thursday?”, and others along the same line. It scares me when I see replies that include enormous codes that execute innumerous function even including some bizarre leap year determination algorithms, I just can’t understand why all the complication and fuss.

The strtotime() function exists to solve these problems and i plan to introduce you to it and show a few usage examples. Also I’m going to check function performance using a simples benchmark comparison. Continue Reading »


1 Star2 Stars3 Stars4 Stars5 Stars (4 votos, média: 5 de 5)
Loading ... Loading …

2 Comments »