<?php $pattern = '/,|\[[^]]+\](*SKIP)(*FAIL)/'; $string = "'==', ['abc', 'xyz'], 1"; $result = preg_split($pattern, $string); print_r($result);
You have javascript disabled. You will not be able to edit any code.