How to echo or print an array in PHP?

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

I have this array

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


        
11条回答
  •  感情败类
    2020-11-22 17:41

    foreach($results['data'] as $result) {
        echo $result['type'], '
    '; }

    or echo $results['data'][1]['type'];

提交回复
热议问题