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

Breadcrumb

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

function ByteString::padEnd

Overrides AbstractString::padEnd

File

vendor/symfony/string/ByteString.php, line 265

Class

ByteString
Represents a binary-safe string of bytes.

Namespace

Symfony\Component\String

Code

public function padEnd(int $length, string $padStr = ' ') : static {
    $str = clone $this;
    $str->string = str_pad($this->string, $length, $padStr, \STR_PAD_RIGHT);
    return $str;
}

API Navigation

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