Locker\Helpers\Helpers::replaceFullStop PHP Method

replaceFullStop() static public method

|---------------------------------------------------------------------------
static public replaceFullStop ( $array )
    static function replaceFullStop($array)
    {
        $output = [];
        if (!empty($array)) {
            foreach ($array as $key => $value) {
                if (is_array($value)) {
                    $new = Helpers::replaceFullStopInKeys($key);
                    $output[$new] = Helpers::replaceFullStop($value);
                } else {
                    $new = Helpers::replaceFullStopInKeys($key);
                    $output[$new] = $value;
                }
            }
        }
        return $output;
    }

Usage Example

 static function replaceFullStop($array)
 {
     $output = [];
     if (!empty($array)) {
         foreach ($array as $key => $value) {
             if (is_array($value)) {
                 $new = Helpers::replaceFullStopInKeys($key);
                 $output[$new] = Helpers::replaceFullStop($value);
             } else {
                 $new = Helpers::replaceFullStopInKeys($key);
                 $output[$new] = $value;
             }
         }
     }
     return $output;
 }
All Usage Examples Of Locker\Helpers\Helpers::replaceFullStop