Re: converting a multi-decisional array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Your current code works fine. I put your code into a test program and there are no errors. The error must be elsewhere in your code.

<?php
$row = ['sda_day_number'=>1,'sda_start'=>time(),'sda_end'=>time()+100000,'order_id'=>1234];
$pstart = 1;
$pend = 2;
$order_id = '1234';
$avs[$row['sda_day_number']][] =
        array(
                        'dn'            =>      $row['sda_day_number'],
                        'start'         =>      date('g:i a', strtotime($row['sda_start'])),
                        'end'           =>      date('g:i a', strtotime($row['sda_end'])),
                        'pstart'                =>      $pstart,
                        'pend'          =>      $pend,
                        'order_id' => $row['order_id']
                );
print_r($avs);


Ken

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux