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

Breadcrumb

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

function ParameterBag::getAlnum

Returns the alphabetic characters and digits of the parameter value.

File

vendor/symfony/http-foundation/ParameterBag.php, line 110

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function getAlnum(string $key, string $default = '') : string {
    return preg_replace('/[^[:alnum:]]/', '', $this->getString($key, $default));
}
RSS feed
Powered by Drupal