Copied!

Represents a binary-safe string of bytes.

Cloneable Instantiable
Constants
public Symfony\Component\String\AbstractString ::PREG_OFFSET_CAPTURE = 256
public Symfony\Component\String\AbstractString ::PREG_PATTERN_ORDER = 1
public Symfony\Component\String\AbstractString ::PREG_SET_ORDER = 2
public Symfony\Component\String\AbstractString ::PREG_SPLIT = 0
public Symfony\Component\String\AbstractString ::PREG_SPLIT_DELIM_CAPTURE = 2
public Symfony\Component\String\AbstractString ::PREG_SPLIT_NO_EMPTY = 1
public Symfony\Component\String\AbstractString ::PREG_SPLIT_OFFSET_CAPTURE = 4
public Symfony\Component\String\AbstractString ::PREG_UNMATCHED_AS_NULL = 512
Methods
public Symfony\Component\String\AbstractString :: __clone ()
public __construct ( string $string = '' )
public Symfony\Component\String\AbstractString :: __sleep () : array
public Symfony\Component\String\AbstractString :: __toString () : string
public Symfony\Component\String\AbstractString :: after ( iterable | string $needle , bool $includeNeedle = false , int $offset = 0 ) : static
 
  • param string | string [] $needle
public Symfony\Component\String\AbstractString :: afterLast ( iterable | string $needle , bool $includeNeedle = false , int $offset = 0 ) : static
 
  • param string | string [] $needle
public append ( string $suffix ) : static
public Symfony\Component\String\AbstractString :: before ( iterable | string $needle , bool $includeNeedle = false , int $offset = 0 ) : static
 
  • param string | string [] $needle
public Symfony\Component\String\AbstractString :: beforeLast ( iterable | string $needle , bool $includeNeedle = false , int $offset = 0 ) : static
 
  • param string | string [] $needle
public bytesAt ( int $offset ) : array
public camel () : static
public chunk ( int $length = 1 ) : array
public Symfony\Component\String\AbstractString :: collapseWhitespace () : static
public Symfony\Component\String\AbstractString :: containsAny ( iterable | string $needle ) : bool
 
  • param string | string [] $needle
public endsWith ( Symfony\Component\String\AbstractString | iterable | string $suffix ) : bool
public Symfony\Component\String\AbstractString :: ensureEnd ( string $suffix ) : static
public Symfony\Component\String\AbstractString :: ensureStart ( string $prefix ) : static
public equalsTo ( Symfony\Component\String\AbstractString | iterable | string $string ) : bool
public folded () : static
public static fromRandom ( int $length = 16 , ? string $alphabet = NULL ) : self
public Symfony\Component\String\AbstractString :: ignoreCase () : static
public indexOf ( Symfony\Component\String\AbstractString | iterable | string $needle , int $offset = 0 ) : ? int
public indexOfLast ( Symfony\Component\String\AbstractString | iterable | string $needle , int $offset = 0 ) : ? int
public Symfony\Component\String\AbstractString :: isEmpty () : bool
public isUtf8 () : bool
public join ( array $strings , ? string $lastGlue = NULL ) : static
public Symfony\Component\String\AbstractString :: jsonSerialize () : string
public length () : int
public lower () : static
public match ( string $regexp , int $flags = 0 , int $offset = 0 ) : array
public padBoth ( int $length , string $padStr = ' ' ) : static
public padEnd ( int $length , string $padStr = ' ' ) : static
public padStart ( int $length , string $padStr = ' ' ) : static
public prepend ( string $prefix ) : static
public Symfony\Component\String\AbstractString :: repeat ( int $multiplier ) : static
public replace ( string $from , string $to ) : static
public replaceMatches ( string $fromRegexp , callable | string $to ) : static
public reverse () : static
public slice ( int $start = 0 , ? int $length = NULL ) : static
public snake () : static
public splice ( string $replacement , int $start = 0 , ? int $length = NULL ) : static
public split ( string $delimiter , ? int $limit = NULL , ? int $flags = NULL ) : array
public startsWith ( Symfony\Component\String\AbstractString | iterable | string $prefix ) : bool
public title ( bool $allWords = false ) : static
public Symfony\Component\String\AbstractString :: toByteString ( ? string $toEncoding = NULL ) : Symfony\Component\String\ByteString
public toCodePointString ( ? string $fromEncoding = NULL ) : Symfony\Component\String\CodePointString
public Symfony\Component\String\AbstractString :: toString () : string
public toUnicodeString ( ? string $fromEncoding = NULL ) : Symfony\Component\String\UnicodeString
public trim ( string $chars = ' ' ) : static
public trimEnd ( string $chars = ' ' ) : static
public Symfony\Component\String\AbstractString :: trimPrefix ( $prefix ) : static
 
  • param string | string [] $prefix
public trimStart ( string $chars = ' ' ) : static
public Symfony\Component\String\AbstractString :: trimSuffix ( $suffix ) : static
 
  • param string | string [] $suffix
public Symfony\Component\String\AbstractString :: truncate ( int $length , string $ellipsis = '' , bool $cut = true ) : static
public static Symfony\Component\String\AbstractString :: unwrap ( array $values ) : array
 

Unwraps instances of AbstractString back to strings.

  • return string []| array
public upper () : static
public width ( bool $ignoreAnsiDecoration = true ) : int
public Symfony\Component\String\AbstractString :: wordwrap ( int $width = 75 , string $break = ' ' , bool $cut = false ) : static
public static Symfony\Component\String\AbstractString :: wrap ( array $values ) : array
 

Wraps (and normalizes) strings in instances of AbstractString.

  • return static []| array
Properties
protected Symfony\Component\String\AbstractString :: $ignoreCase
protected Symfony\Component\String\AbstractString :: $string
Constants
private Symfony\Component\String\ByteString ::ALPHABET_ALPHANUMERIC = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
Methods
public static fromRandom ( int $length = 16 , ? string $alphabet = NULL ) : self
public static Symfony\Component\String\AbstractString :: unwrap ( array $values ) : array
 

Unwraps instances of AbstractString back to strings.

  • return string []| array
public static Symfony\Component\String\AbstractString :: wrap ( array $values ) : array
 

Wraps (and normalizes) strings in instances of AbstractString.

  • return static []| array
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration