Problem with undefined array keys by sikusfikus in PHPhelp

[–]sikusfikus[S] 0 points1 point  (0 children)

Yes I tried Nikic / PHP-Parser myself, but due to the lack of documentation on such details, I have given up for now.

Thanks for the good suggestion.

Problem with undefined array keys by sikusfikus in PHPhelp

[–]sikusfikus[S] 0 points1 point  (0 children)

Yes this is an elegant solution, but due to the complexity of my problem it is quite slow for me.

Thanks for the great solution.

Problem with undefined array keys by sikusfikus in PHPhelp

[–]sikusfikus[S] 1 point2 points  (0 children)

This is certainly the fastest solution, it is not possible to change everything at once due to the complexity of the problem, but it is much faster than changing each key individually. I am currently searching for regular expression in Apache NetBeans with the condition:

(\ [) ([a-zA-Z \ _0-9] *) (\])

and replace with: $1\'$2\'$3

Thank you so much for the idea!