我如何在一个变量内使用变量第二变量值给出单个方程


How do i use variable within a variable second variable value give single qutaion?

$cod=set_value('code')  ;   
$where='`code`= '.$cod ' ';

结果应该像code ='some value',但当我打印时给出错误

我没有完全理解你的问题,但我认为这是你需要的…

$where="'code=".$cod."'";
Or

$where="code='".$cod."'";