Forum Announcements
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Forum Information Forum Announcements

Closed Thread
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 25th, 2005, 04:39 PM
thaminda_2
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Name your PHP CODE blocks

We create a new hack to name PHP code blocks.

Code block without name
PHP Code:
 $tomorrow  mktime(000date("m")  , date("d")+1date("Y"));
$lastmonth mktime(000date("m")-1date("d"),  date("Y"));
$nextyear  mktime(000date("m"),  date("d"),  date("Y")+1); 


Code block with name
PHP Code:
Date formatting
 $today date("F j, Y, g:i a");                // March 10, 2001, 5:16 pm
$today date("m.d.y");                        // 03.10.01
$today date("j, n, Y");                      // 10, 3, 2001
$today date("Ymd");                          // 20010310
$today date("D M j G:i:s T Y");              // Sat Mar 10 15:16:08 MST 2001
$today date('H:m:s \m \i\s\ \m\o\n\t\h');    // 17:03:17 m is month
$today date("H:i:s");                        // 17:16:17 

Reply With Quote
Closed Thread

Viewing: Web Development Archives Forum Information Forum Announcements > Name your PHP CODE blocks


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway