Gossamer Forum
Home : General : Internet Technologies :

General PHP question - mktime()

Quote Reply
General PHP question - mktime()
Here is the code sample:

Code:
Code<?php
$dateA = '12-25-2003';
$dateB = '12-24-1999';

// convert to unix time stamps
$fooA = explode('-',$dateA);
$fooB = explode('-',$dateB);

$timestampA = mktime(0,0,0,$fooA[0],$fooA[1],$fooA[0]);
$timestampB = mktime(0,0,0,$fooB[0],$fooB[1],$fooB[0]);

if($timestampA > $timestampB)
{
echo $dateA . " is greater than B";
}
else{
echo $dateB . " is greater than A";
}
?>


My question is what do the [] represent in:

$timestampA = mktime(0,0,0,$fooA[0],$fooA[1],$fooA[0]);
Subject Author Views Date
Thread General PHP question - mktime() Unquick 4426 Jun 2, 2003, 7:42 AM
Thread Re: [Unquick] General PHP question - mktime()
Andy 4240 Jun 2, 2003, 8:02 AM
Thread Re: [Andy] General PHP question - mktime()
Unquick 4220 Jun 2, 2003, 8:12 AM
Post Re: [Unquick] General PHP question - mktime()
Andy 4250 Jun 2, 2003, 8:31 AM
Post Re: [Unquick] General PHP question - mktime()
Paul 4214 Jun 2, 2003, 10:47 AM