I hereby claim:
- I am sandisk on github.
- I am sandis (https://keybase.io/sandis) on keybase.
- I have a public key ASB7pYZXi0sXhEuGIGIWGnx6ggg5gcTBBX4jmkn28OWRuAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
$selected = (array)json_decode('{"1":"2","2":"4","3":"7"}'); | |
var_dump($selected); | |
// array (size=3) | |
// '1' => string '2' (length=1) | |
// '2' => string '4' (length=1) | |
// '3' => string '7' (length=1) | |
var_dump(in_array('1', array_keys($selected))); |