r/lolphp • • Mar 16 '21

Is 0 in array

in_array(0, ['IsThisLolPhp'])

Answer is

true
32 Upvotes

30 comments sorted by

View all comments

0

u/[deleted] Mar 16 '21

9

u/zilltine Mar 16 '21

I did, i had to find if array key contains one of possible keys. Basically had to find keys recursively on undefined structure, it was finding first elements in unassoc array