PHP输出帮助 [英] PHP Output Help

查看:59
本文介绍了PHP输出帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览一本PHP书(24小时教书之一)

我在PHP中遇到了一些我以前从未见过的东西。这是一种不使用打印方法打印出来的方法,它就像

一样:


<?= $ myVar的; ?>


这是一个过时的方法吗?它是否兼容所有版本的PHP

(至少实现)?


Rick
www.e-connected.com

解决方案

myVar; ?>


这是一个过时的方法吗?它是否兼容所有版本的PHP

(至少实现)?


Rick
www.e-connected.com


2005年8月9日07:40:53 -0700,rik < RI ******* @ e-connected.com>写道:

我正在浏览一本PHP书(24小时教学之一)
我偶然发现了一些我以前从未见过的PHP。这是一种不使用打印方法打印出来的方法,它就像是:

<?=


myVar ; ?>

这是一个过时的方法吗?


好​​吧,它已被弃用,因为它需要启用short_open_tags。


您可能认为<?php =

I was flicking through a PHP book (one of the teach in 24 hour ones)
and I came across something I had never seen before in PHP. It was a
method of printing out without using the print method, it was something
like :

<?= $myVar; ?>

Is this an out dated method? Is it compatible with all versions of PHP
(since implementation at least)?

Rick
www.e-connected.com

解决方案

myVar; ?>

Is this an out dated method? Is it compatible with all versions of PHP
(since implementation at least)?

Rick
www.e-connected.com


On 9 Aug 2005 07:40:53 -0700, "rik" <ri*******@e-connected.com> wrote:

I was flicking through a PHP book (one of the teach in 24 hour ones)
and I came across something I had never seen before in PHP. It was a
method of printing out without using the print method, it was something
like :

<?=


myVar; ?>

Is this an out dated method?
Well, it''s deprecated, as it requires short_open_tags to be enabled.

You might have thought that <?php=


这篇关于PHP输出帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆