First, I know I can get the very same result with explode, just want to know why it is not working in PHP
preg_split('/(.+,)+(.+)/im', 'New York, NY, United States');
It returns
array (
0 => '',
1 => '',
)
Why? It should returns: ['New York, NY, ', 'United States'] right?