communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "information" - download "date examples" - open demo of "date examples"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

information - date examples was created/last modified on Tue 23 Mar 2004 1:03 AM

some more date examples
  
  <?php
  
  $today
[] = date("F j, Y, g:i a");
  
$today[] = date("m.d.y");
  
$today[] = date("j, n, Y");
  
$today[] = date("Ymd");
  
$today[] = date('h-i-s, j-m-y, it is w Day z ');
  
$today[] = date('\i\t \i\s \t\h\e jS \d\a\y.');
  
$today[] = date("D M j G:i:s T Y");

// this is logical BUT wrong
  
$today[] = date('H:m:s \m \i\s\ \m\o\n\t\h');
// this is right
  
$today[] = date("H:i:s");
  
  for(
$x=0;$x<count($today);$x++) echo '<br>'.$today[$x];
  
  
?>   

learn more about some of the PHP functions used in this snippet: count, date, echo, for, log

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

PHParadise.com - PHP-classes.org - your site on safari