Well you live and learn..
Can't really think immediately of a use for me at the moment but have to admit it came as quite a shock when I saw these two functions.... date_sunrise and date_sunset
Is this another case of way too many functions in php to remember them all (with exceptions like Feyd) ? When are they going to have a php command to make my coffee ?
Functions only just noticed... date_sunrise/date_sunset
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
Functions only just noticed... date_sunrise/date_sunset
Last edited by CoderGoblin on Tue Aug 14, 2007 8:40 am, edited 1 time in total.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Re: Functions only just noticed... date_sunrise/date_sunset
While their use is limited to a select few, they are extremely useful because of the large amount of calculation involved.CoderGoblin wrote:Is this another case of way too many functions in php to remember them all (with exceptions like Feyd)?
I believe that's scheduled for 6.5, although they are waiting for a communication standard to emerge over TCP/IP.CoderGoblin wrote:When are they going to have a php command to make my coffee ?
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Code: Select all
C:\Users\HP_Administrator>php -r "$a = get_defined_functions(); $a = $a['intern
al']; echo count($a);"
1131Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Hehe, I get to see that lovely list every time that I look up a function in my PHP manual.Everah wrote:In a nice little list...
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
That's fine if you have the time to them all up. I think a lot of people, myself included go to php.net and simply search for the function they are after.Everah wrote:In a nice little list...
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
I agree with this. I do this too. Very rarely do I ever view the function list. The times I do are usually when I think there is a function that does something that someone like feyd knows, but I don't, and before asking, I quickly Ctrl+F that list for variants of what I think it would be called.CoderGoblin wrote:That's fine if you have the time to them all up. I think a lot of people, myself included go to php.net and simply search for the function they are after.Everah wrote:In a nice little list...
But I search way more often than I view that list.