Link to home
Start Free TrialLog in
Avatar of CMDAI
CMDAI

asked on

php if statment to compile a string

$recname = "stk_" . if($row[4]==1){return "a";}else{return "b";} . $row[0];

is there a replacement for "if" if i want to write a statement like this ?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CMDAI
CMDAI

ASKER

thanks