Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $rumus1 = "sin('#a')*('#Wo'+2)";
- $k[0] = '#a';
- $k[1] = '#Wo';
- $v[0] = 2;
- $v[1] = 3;
- $res = str_replace($k, $v, $rumus1);
- eval("\$final = $res;");
- echo $final;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement