Forum Announcements
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsForum InformationForum 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 Dev Articles Community Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 25th, 2005, 03:50 PM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 108 thaminda User rank is Private First Class (20 - 50 Reputation Level)thaminda User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 17 h 42 m 33 sec
Reputation Power: 4
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: Dev Articles Community ForumsForum InformationForum 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 News | Latest Threads | Shoutbox
Forum Jump


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

Iron Speed




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