[lang-ref] ( string_split_with_separator ) ( php )
<?php
public function testStringSplitWithSeparator(): void
{
// explode($separator, $s)
$text = 'abc,def,ghi';
$elems = explode(',', $text);
$this->assertSame(['abc', 'def', 'ghi'], $elems);
}
<?php
public function testStringSplitWithSeparator(): void
{
// explode($separator, $s)
$text = 'abc,def,ghi';
$elems = explode(',', $text);
$this->assertSame(['abc', 'def', 'ghi'], $elems);
}