Home > Backend Development > PHP Tutorial > html - <br/>右括弧被误会成php代码的结束符,怎么破?

html - <br/>右括弧被误会成php代码的结束符,怎么破?

WBOY
Release: 2016-06-06 20:26:43
Original
1551 people have browsed it

<code>


    <meta charset="utf-8">
    <title>服务端生成 上传凭证 代码</title>



<?php 下面这出的->被误会了
    $token = $auth -> uploadToken($bucket);

    echo "上传凭证:".$token."<br>";
?>


</code>
Copy after login
Copy after login

回复内容:

<code>


    <meta charset="utf-8">
    <title>服务端生成 上传凭证 代码</title>



<?php 下面这出的->被误会了
    $token = $auth -> uploadToken($bucket);

    echo "上传凭证:".$token."<br>";
?>


</code>
Copy after login
Copy after login

不是<br>吗?

可以使用XML转移字符.<br> 详情请百度

PHP结束符是?>,差个问号呢好吧,实在不行的话你就写<br/>

这不太可能吧,如果是真的,你可以改成下面的写法

<code><script language="php">
    //PHP代码
</script></code>
Copy after login

重新定义php闭合符号

请楼主证明一下你所提出的问题.

用你提供的代码, 没发现你所描述的问题.

html - <br/>右括弧被误会成php代码的结束符,怎么破?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template