cyrilpetit
New Member
Hi everyone !
I successfully can find unquoted string in my php files, recursively, with this command line:
ack --heading --php "\[[a-zA-Z0-9_]*]"
But then, now, how to add quotes to this string ?
(FYI, My goal is to replace all constant in my php files, recursively to get rid of the Warning: Use of undefined constant.)
Any suggestions ?
I successfully can find unquoted string in my php files, recursively, with this command line:
ack --heading --php "\[[a-zA-Z0-9_]*]"
But then, now, how to add quotes to this string ?
(FYI, My goal is to replace all constant in my php files, recursively to get rid of the Warning: Use of undefined constant.)
Any suggestions ?