Convert php arrays with the new syntax

php, sublime-text-plugin, sublimetext, sublimetext2, sublimetext3

Solution

I found a script that does the job perfectly !

https://github.com/thomasbachem/php-short-array-syntax-converter

Problem

I looking for a way (regex, snippet ,plugin etc) to convert the old arrays with the new php syntax with sublimeText. ``` // Old synthax $var = array( 'foo' => 'bar' ); // New synthax $var = [ 'foo' => 'bar' ]; ``` someone has an idea ?

Original source