Display array values in PHP

前端 未结 9 2286
名媛妹妹
名媛妹妹 2020-12-01 07:51

So, I\'m working with PHP for the first time and I am trying to retrieve and display the values of an array. After a lot of googling, the only methods I can find for this ar

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-01 08:07

    you can easily use join()

    $fruits = array("apple", "banana", "orange");
    print join(" ".$fruits);
    

提交回复
热议问题