I have only just touched the surface of PHP's functionality. There are just so many ways to do things.
I wondered if there was a simpler/more efficient way to express the following:
Thx GPHP Code:$fees = 0;
if ( $price > 500000 ) $fees = 750;
elseif ( $price > 350000 ) $fees = 550;
elseif ( $price > 250000 ) $fees = 500;
elseif ( $price > 200000 ) $fees = 460;
elseif ( $price > 150000 ) $fees = 420;
elseif ( $price > 100000 ) $fees = 385;
elseif ( $price > 0 ) $fees = 350;
![]()



Reply With Quote





Bookmarks