I have a method that requires two variables to pass through it but for some reason the second one doesn't. I've tried tons of stuff but nothing seems to work.
function get_area_number($area, $company='daniweb'){
echo '>> '.$company;
}
Thats the method, nothing is displayed for the $company echo unless I declare it just before the echo. This is how I call it
$area_number = $get_area->get_area_number('an area','daniweb');// Doesn't work
$area_number = $get_area->get_area_number('an area');// Doesn't work
$area_number = $get_area->get_area_number('an area',$daniweb);// Doesn't work
I don't know where to go from here so I was hoping someone here would have an idea, any feedback is appreciated.