Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2019
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Array to string conversion in

    Please help, I am getting the following error:

    <br />
    <b>Notice</b>: Array to string conversion in <b>***(378) : eval()'d code</b> on line <b>274</b><br />



    here is my array:

    PHP Code:
    $focus_region_data->speeding_events->ce_corporate->months = [['10/01/2018' => 26'11/01/2018' => 20'12/01/2018' => 4'01/01/2019' => 32'02/01/2019' => 29'03/01/2019'=> 27],
                [
    '10/01/2018' => 36'11/01/2018' => 30'12/01/2018' => 6'01/01/2019' => 42'02/01/2019' => 39'03/01/2019'=> 37],
                [
    '10/01/2018' => 46'11/01/2018' => 40'12/01/2018' => 8'01/01/2019' => 52'02/01/2019' => 49'03/01/2019'=> 47],
                [
    '10/01/2018' => 56'11/01/2018' => 50'12/01/2018' => 10'01/01/2019' => 62'02/01/2019' => 59'03/01/2019'=> 57],
                [
    '10/01/2018' => 66'11/01/2018' => 60'12/01/2018' => 12'01/01/2019' => 72'02/01/2019' => 69'03/01/2019'=> 67]]; 

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    8,083
    Thanks
    37
    Thanked 1,081 Times in 1,077 Posts
    One of these isn't right:
    $focus_region_data->speeding_events->ce_corporate->months
    Please post the four objects.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    Master Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    5,821
    Thanks
    26
    Thanked 605 Times in 598 Posts
    This error occurs when you try to echo an array.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •