src/Helpers.php
public static function fillMissingKeys($array, $value, $keys)
    {
        foreach ($keys as $key) {
            if (! array_key_exists($key, $array)) {
                $array[$key] = $value;
            }
        }

        return $array;
    }
public static function fillMissingKeys($array, $value, $keys)
    {
        foreach ($keys as $key) {
            if (! array_key_exists($key, $array)) {
                $array[$key] = $value;
            }
        }

        return $array;
    }
public static function fillMissingKeys ( $ array , $ value , $ keys ) { foreach ( $ keys as $ key ) { if ( ! array_key_exists ( $ key , $ array ) ) { $ array [ $ key ] = $ value ; } } return $ array ; }
Fill the given array with the given value for any missing keys.

@param  iterable  $array
@param  mixed  $value
@param  iterable  $keys
@return iterable
Fill the given array with the given value for any missing keys .