I have very old php4-5 project that needs to migrate to php7.2
It has a lot of codes like:
echo '<img src="img/'.$r[imgurl1].'"
strip_tags($r[details])
It's now in my local ubuntu 18 apache&php-server. How can i search and replace all the .php files to add quotes ? I cannot add doublequotes if [] contains $ (Variable) sign in it, of course And also if it already contains " or '
I know little bit of preg, but not enough.. I have sublime text3 and notepad++ that can do also replaces if only now the right regular expression. Pleas help!