$i%2==0 ? $color=”$c[color7]” : $color=”$c[color7]”;
I’m trying to change all files like this.
$i%2==0 ? $color=”$c[‘color7’]” : $color=”$c[‘color7’]”;
It changed like this a few years ago, but not now.
find . -name “test3.php” -exec perl -pi -e ‘s/$c[color7]/$c[‘color7′]/g’ {} ;
In my test file it didn’t change to $c[‘color7’].