How to echo or print an array in PHP?

前端 未结 11 1519
春和景丽
春和景丽 2020-11-22 17:18

I have this array

Array
(
  [data] => Array
    (
      [0] => Array
        (
          [page_id] => 204725966262837
          [type] => WEBSITE         


        
11条回答
  •  Happy的楠姐
    2020-11-22 17:40

    Loop through and print all the values of an associative array, you could use a foreach loop, like this:

    foreach($results as $x => $value) {
        echo $value;
    }
    

提交回复
热议问题