PHP string inside also have "" and ", itself is the string how to do?
Resolved "Sdom": "<\ ' row\ ' <\ ' span8\ ' l><\ ' span8\ ' f>r>t<\ ' row\ ' <\ ', ' span8\ ' i><\ ' span8\ ' p >> ",//This sentence will be error" Sdom ":" < ' row ' < ' span8 ' l>< ' span8 ' f>r>t< ' row ' < ' span8 ' i>< ' SPAN8 ' p >> ",
Clientscript->registercssfile (Yii::app ()->request->baseurl. ' /assets/datatables-1.9.4/css/datatable.css '); Yii::app ()->clientscript->registerscriptfile (Yii::app ()->request->baseurl. /assets/datatables-1.9.4/js/jquery.datatables.min.js ', Cclientscript::P os_end); Yii::app ()->clientscript->registerscript (' Example ', ' $ (document). Ready (function () {$ ("#example"). dataTable ({"Aasorting": [[0, "desc"]], "Spaginationtype": "Full_numbers", "Sdom": "< ' row ' < ' span8 ' l>< ' span8 ' f>r>t< ' row ' < ' span8 ' i>< ' span8 ' p>> ', ' olanguage ': {' surl ': ' Asse Ts/datatables-1.9.4/language/zh_cn.json "}});", Cclientscript::P os_end);? > Operation options
' List-group-item ');?>
' List-group-item ');?>
Reply content:
PHP string inside also have "" and ", itself is the string how to do?
Resolved "Sdom": "<\ ' row\ ' <\ ' span8\ ' l><\ ' span8\ ' f>r>t<\ ' row\ ' <\ ', ' span8\ ' i><\ ' span8\ ' p >> ",//This sentence will be error" Sdom ":" < ' row ' < ' span8 ' l>< ' span8 ' f>r>t< ' row ' < ' span8 ' i>< ' SPAN8 ' p >> ",
Clientscript->registercssfile (Yii::app ()->request->baseurl. ' /assets/datatables-1.9.4/css/datatable.css '); Yii::app ()->clientscript->registerscriptfile (Yii::app ()->request->baseurl. /assets/datatables-1.9.4/js/jquery.datatables.min.js ', Cclientscript::P os_end); Yii::app ()->clientscript->registerscript (' Example ', ' $ (document). Ready (function () {$ ("#example"). dataTable ({"Aasorting": [[0, "desc"]], "Spaginationtype": "Full_numbers", "Sdom": "< ' row ' < ' span8 ' l>< ' span8 ' f>r>t< ' row ' < ' span8 ' i>< ' span8 ' p>> ', ' olanguage ': {' surl ': ' Asse Ts/datatables-1.9.4/language/zh_cn.json "}});", Cclientscript::P os_end);? > Operation options
' List-group-item ');?>
' List-group-item ');?>
Add escape character "\"
$bar = <<<>
"Foo ' s Baba is bar & Foo's mama is bug!"
EOT;