Print the keys of an array

前端 未结 8 681
旧巷少年郎
旧巷少年郎 2020-11-27 21:07

I could not figure out how to pass a variable number of variables into a function. I thought passing in an array and using the array keys for the variables names could repla

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 21:40

    foreach(array_keys($parameters) as $key) {
       echo $key.'
    '; }

提交回复
热议问题