trying to make an array with every date (in YYYY-MM-DD format) of the current week in it...
the below code ain't working, any ideas?!


function createdatearray($sunday){
        $date = date('Ymd',strtotime($date));
        for($x=0; $x<=7; $x++){
                $y = $x + 1;
                $date[$y] = mktime(0,0,0,date('m'),date('d')-date('w')+$x ,date('Y'));
        return $date;

Stay in touch with absent friends - get MSN Messenger

-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to