Page 1 of 2
Year.
Posted: Fri Aug 10, 2007 8:18 pm
by JellyFish
How do I get the current year? Like: 2008.
Posted: Fri Aug 10, 2007 8:19 pm
by Benjamin
Whoa, jellyfish, how about a decent title?
Research the date function. Have you downloaded a copy of the manual yet?
Posted: Fri Aug 10, 2007 8:26 pm
by JellyFish
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.
Posted: Fri Aug 10, 2007 8:28 pm
by superdezign
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.
Posted: Fri Aug 10, 2007 8:51 pm
by Benjamin
On windows, you can use the CHM version, which has nice search capabilities.
http://www.php.net/get/php_manual_en.ch ... his/mirror
Posted: Fri Aug 10, 2007 8:52 pm
by JellyFish
Posted: Fri Aug 10, 2007 8:53 pm
by Benjamin
Compiled Help Something. You may want to install the google toolbar too.

Posted: Fri Aug 10, 2007 8:53 pm
by VladSun
CHM = Compiled HTML Help File
But your avatar suggests that you are not Windows user

Posted: Fri Aug 10, 2007 9:31 pm
by superdezign
The last time I got the CHM version, it was like.. halfway empty. Nothing worked.

Posted: Sat Aug 11, 2007 12:23 am
by John Cartwright
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.
Posted: Sat Aug 11, 2007 12:24 am
by Benjamin
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.
Posted: Sat Aug 11, 2007 9:15 am
by superdezign
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.
Posted: Tue Aug 14, 2007 3:21 pm
by JellyFish
VladSun wrote:CHM = Compiled HTML Help File
But your avatar suggests that you are not Windows user

Really? Look again...
Posted: Tue Aug 14, 2007 10:50 pm
by hawleyjr
... a lot or responses but no questions answered...
Posted: Tue Aug 14, 2007 11:04 pm
by angelena
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