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

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

WBOY
WBOYOriginal
2016-06-06 20:32:411137browse

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

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

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

回复内容:

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

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

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

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

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

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

Statement:
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