PDA

View Full Version : what is the meaning of this [1] ,[0] and [2] ?


mampwamp
08-11-2010, 11:39 PM
hi,
what is the meaning of this [1] ,[0] and [2] ?:shock:

$posttime_ts = mktime($posttime_time[0], $posttime_time[1], $posttime_time[2], $posttime_date[1], $posttime_date[2], $posttime_date[0]);

edbr
08-12-2010, 12:59 AM
its a reference to an array in this case $posttime_time
[0]being the first value [1] the second etc

mampwamp
08-12-2010, 01:43 AM
its a reference to an array in this case $posttime_time
[0]being the first value [1] the second etc


if mktime is array as
mktime(hour,minute,second,month,day,year,is_dst)
the[0] is refer to what value ?
first hour ?

edbr
08-12-2010, 01:47 AM
the first value in the array definition