PHP Print keys from an object?

前端 未结 5 930
眼角桃花
眼角桃花 2021-01-07 18:07

I have an object BIRD and then there is [0] through [10] and each number has a subheading like \"bug\" or \"beetle\" or \"gnat\" and a value for each of those.

I wan

5条回答
  •  天涯浪人
    2021-01-07 18:18

    I could be wrong but try to use array_keys using a object as parameter. I believe that is possible in php. http://php.net/manual/en/function.array-keys.php

    Anyway, read about reflection.

提交回复
热议问题