PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Fri Aug 10, 2007 8:18 pm
How do I get the current year? Like: 2008.
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Fri Aug 10, 2007 8:19 pm
Whoa, jellyfish, how about a decent title?
Research the date function. Have you downloaded a copy of the manual yet?
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Fri Aug 10, 2007 8:26 pm
astions wrote: Whoa, jellyfish, how about a decent title?
Research the date function. Have you downloaded a copy of the manual yet?
I just go to the php.net for the manual, should I download it and why? I'm going to do as you say.
PS: Sorry about the title... No excuses.
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Fri Aug 10, 2007 8:28 pm
JellyFish wrote: I just go to the php.net for the manual, should I download it and why? I'm going to do as you say.
Just to keep it handy.
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Fri Aug 10, 2007 8:52 pm
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Fri Aug 10, 2007 8:53 pm
Compiled Help Something. You may want to install the google toolbar too.
VladSun
DevNet Master
Posts: 4313 Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria
Post
by VladSun » Fri Aug 10, 2007 8:53 pm
CHM = Compiled HTML Help File
But your avatar suggests that you are not Windows user
There are 10 types of people in this world, those who understand binary and those who don't
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Fri Aug 10, 2007 9:31 pm
The last time I got the CHM version, it was like.. halfway empty. Nothing worked.
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Sat Aug 11, 2007 12:23 am
Excluding people on dial-up and/or limited internet availability: what's not handy about php.net? It's got a fantastic search system and other searchable online documentation.
Benjamin
Site Administrator
Posts: 6935 Joined: Sun May 19, 2002 10:24 pm
Post
by Benjamin » Sat Aug 11, 2007 12:24 am
One thing I like about the CHM is the view where you can type in the first few characters of a function and it will bring up a list of matches. You can also get integrated user comments, so it's pretty much the same.
superdezign
DevNet Master
Posts: 4135 Joined: Sat Jan 20, 2007 11:06 pm
Post
by superdezign » Sat Aug 11, 2007 9:15 am
Jcart wrote: Excluding people on dial-up and/or limited internet availability: what's not handy about php.net? It's got a fantastic search system and other searchable online documentation.
I've found that the not-so-searchable HTML version that I have brings my attention to the whole rather than just a certain function, as everything is organized into libraries and categories.
JellyFish
DevNet Resident
Posts: 1361 Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA
Post
by JellyFish » Tue Aug 14, 2007 3:21 pm
VladSun wrote: CHM = Compiled HTML Help File
But your avatar suggests that you are not Windows user
Really? Look again...
hawleyjr
BeerMod
Posts: 2170 Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA
Post
by hawleyjr » Tue Aug 14, 2007 10:50 pm
... a lot or responses but no questions answered...
angelena
Forum Commoner
Posts: 53 Joined: Mon Nov 22, 2004 4:10 am
Post
by angelena » Tue Aug 14, 2007 11:04 pm
Uppercase Y will return year in 4 digit
Lowercase y will return year in 2 digit
Such as example below :
Code: Select all
$today = date("m.d.y"); Output >>>> 03.10.01
$today = date("j, n, Y"); Output >>>> 10, 3, 2001