Public platform Development text messages embedding hyperlinks failed to help
$CONTENTSTR = "\ n reply to Baidu or reply" search "Learn more \ n other text";
$RESULTSTR = sprintf ($TEXTTPL, $fromUsername, $toUsername, Time (), $msgType, $CONTENTSTR);
/* $resultStr = "
".$fromUsername."
".$toUsername."
". Time ()."
text
文本\n\n回复需要嵌入超链接的文本或回复“搜索” 了解详情\n其他文字
";*/
Echo $resultStr;
Hope to do public platform development of the guidance, online said so can, but I have been unsuccessful, beg to explain
------Solution--------------------
$CONTENTSTR = "\ n reply to Baidu or reply" search "Learn more \ n other text";
------Solution--------------------
Reference:
Quote: Reference:
$CONTENTSTR = "\ n reply to Baidu or reply" search "Learn more \ n other text";
Do you have an error in this sentence?
You can change it to # #
Or
$CONTENTSTR = "\ n reply to Baidu or reply" search "Learn more \ n other text";
This is not possible with single quotation marks, but it can be on the iphone, but it shows an exception on the Android phone.
Is it the same piece of code?
------Solution--------------------
Reference:
Quote: Reference:
$CONTENTSTR = "\ n reply to Baidu or reply" search "Learn more \ n other text";
the problem is solved! What's the use of this "\"?
This is escaping ....
Basic knowledge, suggest LZ learn basic knowledge.