diff --git a/jsts/php.jst b/jsts/php.jst index 11eb726..6187729 100755 --- a/jsts/php.jst +++ b/jsts/php.jst @@ -296,6 +296,8 @@ function strlen($str) function explode($sep, $str) { + // For EMPTY $str return [] instead of [0:""] + if($str=="") return []; if(typeof($str) !== "undefined"){ return $str.split($sep); }