我的PHP代码:转义双引号
$query="select company_name from company_names where cik=".$cik;
其中关于打印功能使
select company_name from company_names where cik=0001001871
我想获得像
select company_name from company_names where cik='0001001871'
输出如何添加PHP中的单引号?
http://php.net/manual/en/language.types.string.php –
但是,为什么你想在整数单引号 – 2012-06-18 06:51:52
如果cik是字符串类型,那么你做一个愚蠢的东西存储int作为字符串 – 2012-06-18 06:52:41