Home > Backend Development > PHP Tutorial > <?php </script>?>不报错

<?php </script>?>不报错

WBOY
Release: 2016-06-06 20:32:41
Original
1173 people have browsed it

无意中输错了,居然能运行输出array(0) {}?>

<code>php</code><code><?php $arr = [];
var_dump($arr);
</script>
?>
</code>
Copy after login
Copy after login

这个问题已被关闭,原因:自己已知答案

回复内容:

无意中输错了,居然能运行输出array(0) {}?>

<code>php</code><code><?php $arr = [];
var_dump($arr);
</script>
?>
</code>
Copy after login
Copy after login

<code>php</code><code>//原来php有几种写法:
1. <?php ?>
2.  ?>
3. <script language="php"> echo 'hello world';</script>

遇见时php就结束了
</code>
Copy after login

php 5.4新特性可以这样定义数组

php的编译器识别到不能识别的标记符号,会自动结束吧

Related labels:
php
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