I'm not able to find out some regex to match multiple php variables into a string
below is an example:
$var = "SELECT * FROM table WHERE admin='".$admin."' AND id=".$idclient." AND something=".$something;
so actually I need to match the whole query string and replace only variables with a function() with variables inside.
The final result that I need should looks like:
$var = "SELECT * FROM table WHERE admin='".functionname($admin)."' AND id=".functionname($idclient)." AND something=".functionname($something);