php troubles with coding variables
Posted
by user342391
on Stack Overflow
See other posts from Stack Overflow
or by user342391
Published on 2010-05-20T15:59:38Z
Indexed on
2010/05/20
16:00 UTC
Read the original article
Hit count: 235
I am trying to echo certain values if the variable $cardtype ==
$paymentmethod = if( $cardtype == 'visa' ) echo 'VSA'; elseif ( $cardtype == 'mastercard' ) echo 'MSC'; elseif ( $cardtype == 'mastercard' ) echo 'MSC'; elseif ( $cardtype == 'maestro' ) echo 'MAE'; elseif ( $cardtype== 'amex' ) echo 'AMX';
How would I do this???
© Stack Overflow or respective owner