Welcome to Delicate template
Header
Just another WordPress site
Header

php单引号输出单引号

4月 28th, 2012 | Posted by 无 名 in php

使用echo输出单引号,需要用转义符\

代码如下:

echo '这是我的个人网站\'xiaojia\'';

输出为:
这是我的个人网站’xiaojia’

You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.