Functions only just noticed... date_sunrise/date_sunset

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Functions only just noticed... date_sunrise/date_sunset

Post by CoderGoblin »

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 ?
Last edited by CoderGoblin on Tue Aug 14, 2007 8:40 am, edited 1 time in total.
User avatar
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

Post by feyd »

CoderGoblin wrote:Is this another case of way too many functions in php to remember them all (with exceptions like Feyd)?
While their use is limited to a select few, they are extremely useful because of the large amount of calculation involved.
CoderGoblin wrote:When are they going to have a php command to make my coffee ?
I believe that's scheduled for 6.5, although they are waiting for a communication standard to emerge over TCP/IP.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

I think it's just another example of what PHP once was: a procedural programming language with a huge function library. It wasn't always OO.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Code: Select all

C:\Users\HP_Administrator>php -r "$a = get_defined_functions();  $a = $a['intern
al'];  echo count($a);"

1131
That's not too bad, really. PHP 5.2.0 internally defined functions.
Set 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Everah wrote:In a nice little list...
Hehe, I get to see that lovely list every time that I look up a function in my PHP manual.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Everah wrote:In a nice little list...
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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

CoderGoblin wrote:
Everah wrote:In a nice little list...
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.
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.

But I search way more often than I view that list.
Post Reply