Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
function eval_with_x($code, $a, $b) {
|
||||
$x = $a;
|
||||
$first = eval($code);
|
||||
$x = $b;
|
||||
$second = eval($code);
|
||||
return $second - $first;
|
||||
}
|
||||
|
||||
echo eval_with_x('return 3 * $x;', 5, 10), "\n"; # Prints "15".
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue