php双引号包含单引号,单引号再包含单引号,这个语句怎么写啊,报错

$first_confirmationstr="<select name='fcm' id='fcm' class='small' onchange='changeConfirmationState($row['id'],'confirm1','this','Client')'>";

$first_confirmationstr = '<select name="fcm" id="fcm" class="small" onchange="changeConfirmationState('.$row['id'].',\'confirm1\',\'this\',\'Client\')">';

说明:用单引号引用属于个人爱好,如果你的爱好相反,请替换所有的单双引号

温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-03-15
1$first_confirmationstr = '<select name="fcm" id="fcm" class="small" onchange="changeConfirmationState('.$row['id'].',\'confirm1\',\'this\',\'Client\')">';
说明:用单引号引用属于个人爱好,如果你的爱好相反,请替换所有的单双引号
相似回答