PHP: Can I reference a single member of an array that is returned by a function?

前端 未结 17 1080
抹茶落季
抹茶落季 2020-12-19 00:21

any idea how if the following is possible in PHP as a single line ?:

... It doesn

17条回答
  •  攒了一身酷
    2020-12-19 00:56

    Sometimes I'll change the function, so it can optionally return an element instead of the entire array:

提交回复
热议问题