I'm not so good with PHP. I have a function which I'm trying to execute, but am unable to do so. I'm trying this for quite some time now.
$init_val = ($price/120) * 20;
$mid_val = $price - $init_val;
//$final_value = $mid_value - 35% of $mid_val // want to execute this logic
//$final_value = $mid_value - ($mid_val * 35%); // this gives error
//$final_value = $mid_value - 35%; // same error
The error given is:
PHP Parse error: syntax error, unexpected ';' in /var/www/site1/function.php on line 51
What am I doing wrong?
$mid_val * 0.35.%is for mod.