Skip to content

Instantly share code, notes, and snippets.

/**
* @param string $sms
* @return array
*/
function parse(string $sms): array
{
preg_match('/41001[\d+]{6,15}[^р]/', $sms, $matches);
$account = $matches[0];
preg_match('/\d+[,\.]*\d*р./', $sms, $matches);
public function append(string $sub): Str
{
if ($this->flag) {
$this->str = StrModifiersMB::append($this->str, $sub);
return $this;
}
$this->str = StrModifiers::append($this->str, $sub);
return $this;
// ==============================