src/Str.php
public static function fromArray($rawArray, $charset = null) {
		$output = array();

		foreach ($rawArray as $rawEntry) {
			$output[] = new static($rawEntry, $charset);
		}

		return $output;
	}
public static function fromArray($rawArray, $charset = null) {
		$output = array();

		foreach ($rawArray as $rawEntry) {
			$output[] = new static($rawEntry, $charset);
		}

		return $output;
	}
public static function fromArray ( $ rawArray , $ charset = null ) { $ output = array ( ) ; foreach ( $ rawArray as $ rawEntry ) { $ output [ ] = new static ( $ rawEntry , $ charset ) ; } return $ output ; }
Variant of the static "constructor" that operates on arrays

@param string[] $rawArray the array of strings to create instances from
@param string|null $charset the charset to use (one of the values listed by `mb_list_encodings`) (optional)
@return static[] the new instances of this class
Variant of the static constructor that operates on arrays