简体   繁体   中英

Why isn't my PHP variable working correctly?

I have this code in a config file that is included in the index file:

$googleplusurl = '<link rel=”author” href=”https://plus.google.com/b/112742920089284118188/112742920089284118188”/>';

That code is called on by this code:

<?php echo $googleplusurl;?>

But when I go to load the index page, it gives me this:

<link rel=â€author†href=â€https://plus.google.com/b/112742920089284118188/112742920089284118188â€/>

What exactly is going wrong here?

因为你有智能引号而不是普通引号"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM