I am looking for a way (regex, snippet, plugin, etc.) to convert old arrays with new php syntax with sublimeText.
// Old synthax $var = array( 'foo' => 'bar' ); // New synthax $var = [ 'foo' => 'bar' ];
Does anyone have an idea?
I found a script that works great!
https://github.com/thomasbachem/php-short-array-syntax-converter
Source: https://habr.com/ru/post/1543078/More articles:Zoom in and out on the graph R - rMySQL updates the same row with multiple users, such as counter - phpCollapse bootstraps on page load - twitter-bootstrapSelecting individual values with count in PostgreSQL - sqlHow to get USABLE screen width and height in Android - javaBest way to deal with user interface performance issues in Windows Phone 8.1 - c #What consequences can I get with an undefined HTML element? - javascriptHow to use CoreMotion to get device orientation in space - iosUIInterfaceOrientationUnknown для какой цели - objective-cExclude folders and files from assembly - intel-xdkAll Articles