Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Mbstring.php

function Mbstring::mb_convert_variables

File

vendor/symfony/polyfill-mbstring/Mbstring.php, line 133

Class

Mbstring
Partial mbstring implementation in PHP, iconv based, UTF-8 centric.

Namespace

Symfony\Polyfill\Mbstring

Code

public static function mb_convert_variables($toEncoding, $fromEncoding, &...$vars) {
    $ok = true;
    array_walk_recursive($vars, function (&$v) use (&$ok, $toEncoding, $fromEncoding) {
        if (false === ($v = self::mb_convert_encoding($v, $toEncoding, $fromEncoding))) {
            $ok = false;
        }
    });
    return $ok ? $fromEncoding : false;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal