So, many years ago when I started writing PHP code, I learned to format information sent from a form as such:
$_POST[itemnamehere];
Whether that was right or wrong at the time, it worked. However, with newer versions of PHP, the format needs to contain inverted commas inside the square brackets, like so:
$_POST['itemnamehere'];
I have literally thousands of PHP files which contain the former formatting and was hoping to find a way to bulk replace using Notepad++.
Obviously, I can't just replace [ with [' and ] with '] as there will be times when [ and ] are used without it being related to $_POST.
I figure there must be a method via regex in Notepad++, but can't seem to manage it.
Any experts have the solution?