Link to home
Start Free TrialLog in
Avatar of lawrence_dev
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'] . '";

Open in new window

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 lawrence_dev
lawrence_dev

ASKER

Thanks!!
You can also do this
$db2 = "productf_{$supplier['db']}";

Open in new window


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.