<?php
class disease {
public function std($type){
$s['hiv'] = false;
$s['herpes'] = false;
$s['clamidia'] = true;
return $s;
}
public function cure_check($type){
$cure = $this->std($type);
if($cure == true)
return 'You\'re in luck, there is a cure';
else
return 'No, no cure, you\'re ----ed';
}
}
$std_check = new disease;
echo $std_check->cure_check('hiv');
?>