I have a heft php file that has a ton of variables like this:
floatval($string)
$string
is always a different string but I want to remove all these floats. What is an easy way to remove floatval($anything)
?
I use Sublime if it matters.
I have a heft php file that has a ton of variables like this:
floatval($string)
$string
is always a different string but I want to remove all these floats. What is an easy way to remove floatval($anything)
?
I use Sublime if it matters.
Use search and replace (ctrl + H
). Also, select the 'Regular Expression' option. Then search for floatval\(\$[a-zA-Z]*\)
and replace with nothing.