I have a project with many array() key without quotes
$ary = array( name => "Smith" ); Any way to convert its key with quote?
$ary = array( 'name' => "Smith" ); I know codes like
$ary[name] = "Smith" ; // can change to $ary['name'] using editor with regexp But the problem if it is coded this way
$ary = array( name => "Smith" ); // or worse $ary = array( name => "Smith", class => "2A" ); How to use regexp to add quote to the array key?
This project has thousands of php files. Any body had experience this and what do you recommend to search and replace all php files. Thank you.
error_reportingvalue was set to hide notices and above for a long time. I dealt myself with this kind of stuff when I lifted this setting. I suppose the OP has the similar case