Kafin Kafin - 1 year ago 80
PHP Question

Convert php arrays with the new syntax

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 ?

Answer Source

I found a script that does the job perfectly !


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download