Home > Article > Backend Development > How does PHP elegantly pass data to the date attribute of front-end Echarts?
For example, the two kinds of data marked in the red box in the screenshot are arrays of assoc_array type that I took directly from the database. How do I convert the array, or what kind of array or json should PHP use to pass to the front end? ? Can you give me an example? Thank you! ! ! ~