[nycphp-talk] Top 5 Most Useful PHP Functions?
Paul Reinheimer
preinheimer at gmail.com
Fri Nov 12 17:25:05 EST 2004
mysql_fetch_assoc and my in-house favourite wrapper for it.
http://www.preinheimer.com/index.php?/archives/72_My_Favourite_PHP_MySQL_function.html
and print_r, I actually only found out it existed like a month ago,
but it's pretty awesome.
paul
On Fri, 12 Nov 2004 11:20:02 -0500, csnyder <chsnyder at gmail.com> wrote:
> On Fri, 12 Nov 2004 07:48:30 -0500, Keith Richardson <keithjr at gmail.com> wrote:
> > getdate(strtotime($sql_date_variable)); - to turn sql datetime
>
> strtotime() is a favorite here, too.
>
> I have an ongoing debate with my coworkers about whether it's better
> to create select menus for month/day/year/hour/minute/ampm on a form,
> or to just provide a text box and strtotime() the result.
>
> Being lazy, I incline to the latter. But the conversation goes:
> "Should I use January 1, 2004? Or 1/1/2004? Or Jan. 1, 2004?"
> "Yes."
> "That's too confusing!"
>
>
> _______________________________________________
> New York PHP Talk
> Supporting AMP Technology (Apache/MySQL/PHP)
> http://lists.nyphp.org/mailman/listinfo/talk
> http://www.newyorkphp.org
>
--
Paul Reinheimer
Zend Certified Engineer
More information about the talk
mailing list