- header: documentation ( source)
<?php
$row = 2000;
$fuzzyprocessormax = 6000;
$fuzzyprocessormin = 1000;
$rekomendasi = 0.01;
// Hitung fuzzy processor min
if ($row <= $fuzzyprocessormin )
{
echo 'Kebutuhan fuzzy 0'; die();
header("Location: ../processor.html");
}
else if ($fuzzyprocessormin <= $row or $row <= $fuzzyprocessormax )
{
$rekomendasi = ($fuzzyprocessormax - $row ) / ($fuzzyprocessormax-$fuzzyprocessormin);
echo 'Kebutuhan fuzzy '.$rekomendasi; die();
header("Location: ../processor.html");}
else if ($row >= $fuzzyprocessormax)
{
echo 'Kebutuhan fuzzy 1'; die();}
else
echo header("Location: ../processor.html");
?>