Payton.Codes

Musings on life, games, and code

Tag: php

  • get_deep_value in PHP

    get_deep_value in PHP

    Ever have an array in PHP that looks like this? It can be annoying to pull deep values from such an array because if you access an array key that doesn’t exist, PHP will throw an exception. You could check each level of the data using array_key_exists() like this: But that would take forever. PHP’s…