mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Fix compatibility with PHP 5.3
This commit is contained in:
parent
8e284db3b9
commit
9ddf2f54f3
1 changed files with 1 additions and 1 deletions
|
|
@ -162,7 +162,7 @@ function escape_dqstr($str)
|
|||
function explode_with_escape($delimiter, $str, $limit = 0, $escape_char = '\\')
|
||||
{
|
||||
if ($limit < 1) $limit = null;
|
||||
$result = [];
|
||||
$result = array();
|
||||
$split = preg_split('/(?<!' . preg_quote($escape_char, '/') . ')' . preg_quote($delimiter, '/') . '/', $str, $limit);
|
||||
foreach ($split as $piece)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue