lawrence_dev
asked on
How do use ' ' within this code?
I am getting an error on this line. How do I fix? I have tried several variations.
$db2 = "productf_' . $supplier['db'] . '";
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also do this
EDIT
Your question is confusing - you have mixed " and '
It looks like your opening question is asking to produce this output
productf_'somevalue'
I am guessing this is not the case
$db2 = "productf_{$supplier['db']}";
EDIT
Your question is confusing - you have mixed " and '
It looks like your opening question is asking to produce this output
productf_'somevalue'
I am guessing this is not the case
For anyone coming to this question in the future, E-E has an article explaining how PHP handles quotes and apostrophes.
ASKER