Home >Backend Development >PHP Tutorial >PHP语句,多重引号有关问题

PHP语句,多重引号有关问题

WBOY
WBOYOriginal
2016-06-13 11:50:551553browse

PHP语句,多重引号问题
双引号里面有单引号,单引号里面还需要引号怎么办?
echo   "";  onclick里面的单引号里面还要加引号,怎么办
------解决方案--------------------

echo   "<input type='button'  class='btnStyle' name='button' id='sbutton' onclick=\"location.href='__URL__/edit?id={$s.uid}&'\" value='完成'/>";
 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn