src/bbn/x.php
public static function json_base64_decode($st): ?array
  {
    $res = \is_string($st) ? json_decode($st, true) : $st;
    if ( \is_array($res) ){
      foreach ( $res as $i => $a ){
        if ( \is_array($a) ){
          $res[$i] = self::json_base64_decode($a);
        }
        else if ( \is_string($a) ){
          $res[$i] = base64_decode($a);
        }
        else{
          $res[$i] = $a;
        }
      }
      return $res;
    }
    return null;
  }
public static function json_base64_decode($st): ?array
  {
    $res = \is_string($st) ? json_decode($st, true) : $st;
    if ( \is_array($res) ){
      foreach ( $res as $i => $a ){
        if ( \is_array($a) ){
          $res[$i] = self::json_base64_decode($a);
        }
        else if ( \is_string($a) ){
          $res[$i] = base64_decode($a);
        }
        else{
          $res[$i] = $a;
        }
      }
      return $res;
    }
    return null;
  }
public static function json_base64_decode ( $ st ) : ? array { $ res = \ is_string ( $ st ) ? json_decode ( $ st , true ) : $ st ; if ( \ is_array ( $ res ) ) { foreach ( $ res as $ i => $ a ) { if ( \ is_array ( $ a ) ) { $ res [ $ i ] = self :: json_base64_decode ( $ a ) ; } else if ( \ is_string ( $ a ) ) { $ res [ $ i ] = base64_decode ( $ a ) ; } else { $ res [ $ i ] = $ a ; } } return $ res ; } return null ; }
Decodes the base64 array's values. You can also give a JSON string of an array.

@param string|array $st
@result array
Decodes the base64 array s values . You can also give a JSON string of an array .