Re: converting a multi-decisional array

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

 



Greetings, Don Wieland.
In reply to Your message dated Thursday, April 29, 2021, 23:58:34,

> Hello,

> I am in need to convert this older version of  PHP array code to a newer
> format because I am getting an error "Uncaught Error: Cannot use string offset as an array in, etc…” :

Either $avs or $row is not an array.

> $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']
>                 );



> For the life of me I cannot find the proper combo of syntax for the newer
> version to not choke on it and the page to display properly.

> Appreciate any help.


-- 
Sincerely Yours, Andrey Repin <anrdaemon@xxxxxxxxxxx>




[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