PHP code example of tommica / php-goalseeksimple
1. Go to this page and download the library: Download tommica/php-goalseeksimple library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tommica / php-goalseeksimple example snippets
use Tommica\GoalSeekSimple;
function calculate($x, $y, $z) {
return $x * $y * $z;
}
$result = GoalSeekSimple::Solve(
'calculate',
array(1, 9, 19),
0,
200,
1,
684,
0
);
echo $result; // 4
composer