Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Split a string by a string
<?php explode(string $separator, string $string, int $limit = PHP_INT_MAX): array
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, terminal()->getWidth() - $pr - $pl - $mr - $ml - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}
<?php $lines = [$this->value];
} else {
if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
<?php if ($this->styles->has('font')) {
$lines = explode(PHP_EOL, $this->value);
} else {
$lines = explode(PHP_EOL, strings(wordwrap($this->value, $widthStyle - $pr - $pl - ($hasBorder() ? $borderSpaces : 0) + $this->getShortcodesStringSize($this->value), PHP_EOL, false))->trimRight(PHP_EOL)->toString());
}
}