超人名片_老超人

news/2024/7/19 15:20:50 标签: php, python, javascript, java, js
超人名片

超人名片

Prior to php 4.1. there were no $_POST, $_GET, etc. superglobal arrays, but there were a bunch of other superglobals, like $HTTP_POST_VARS, $HTTP_GET_VARS and so on. The guide mentions this in the forms chapter but there is a typo (repeated several times 🙂 ) so I thought I should mention it.

在PHP 4.1之前。 没有$ _POST,$ _ GET等超全局数组,但是还有很多其他超全局数组,例如$ HTTP_POST_VARS,$ HTTP_GET_VARS等。 指南在表单一章中提到了这一点,但是有一个错字(重复了🙂次),所以我想我应该提一下。

The guide talks about these older vars with an underscore before the name, like $_HTTP_POST_VARS, $_HTTP_GET_VARS and so on which is not true. The correct names are $HTTP_POST_VARS, $HTTP_POST_VARS and so on, without the underscores.

该指南讨论了这些较旧的var,其名称前带有下划线,例如$ _HTTP_POST_VARS,$ _ HTTP_GET_VARS等,但这是不正确的。 正确的名称是$ HTTP_POST_VARS,$ HTTP_POST_VARS等,不带下划线。

BTW, a trick if you want use old code, written prior to 4.1.0. on newer php versions is to use something like: < ?php $_GET = &$HTTP_GET_VARS; $_POST = &$HTTP_POST_VARS; $_SERVER = &$HTTP_SERVER_VARS; ?>

顺便说一句,这是一个技巧,如果您想使用旧代码,请在4.1.0之前编写。 在较新的php版本上,则使用类似以下的内容:<?php $ _GET =&$ HTTP_GET_VARS; $ _POST =&$ HTTP_POST_VARS; $ _SERVER =&$ HTTP_SERVER_VARS; ?>

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/old-superglobals/

超人名片


http://www.niftyadmin.cn/n/1306806.html

相关文章

ZCE证书

Click for a larger view of the print certificateThats the ZCE logo / sticker 点击查看大图印刷证明书那是ZCE徽标/贴纸 Wo-hoo! The printed certicate found its way to my wall &#x1f642; Technically I received it on Tuesday (May 17th), which is about 6 wee…

android创了还显示hello word为什么_电脑突然死机不用慌!这样做,1分钟救回未保存的Word文档!...

作者 | 叨叨君来源 | 办公资源(id&#xff1a;pptziyuan)Hello&#xff0c;各位小伙伴好呀&#xff01;作为一个打工人&#xff0c;在使用电脑编辑文档的时候&#xff0c;你们一定遇到过这样的情况&#xff1a;花了半天的时间&#xff0c;好不容易把一份文档编辑完了&#xff0…

可变范围

The certification book goes on with the calc_weeks example: 认证书以calc_weeks示例为例&#xff1a; < ?php function calc_weeks() { $years 10; return $years * 52; } $years 28; echo calc_weeks(); ?> php函数calc_weeks(){$ years 10; 返回$ years * 52…

rocketmq存储结构_消息中间件—RocketMQ消息存储(一)

文章摘要&#xff1a;MQ分布式消息队列大致流程在于消息的一发一收一存&#xff0c;本篇将为大家主要介绍下RocketMQ存储部分的架构消息存储是MQ消息队列中最为复杂和最为重要的一部分&#xff0c;所以小编也就放在RocketMQ系列篇幅中最后一部分来进行阐述和介绍。本文先从目前…

序列化二叉树_序列化

序列化二叉树Serializing is a nice way to get a string out of more complicated data structure. Its probably mostly used to sting-alize array data, although you can serialize scalar data as well. 序列化是一种从更复杂的数据结构中获取字符串的好方法。 尽管您也可…

4 拼接_2大方法、4大建议告诉你如何更好的拼接50米画面

很多广告标识企业可能都遇到过这样的事情&#xff1a;画面尺寸太大&#xff0c;需要进行拼接。那么在画面进行拼接的过程中&#xff0c;需要注意哪些事项&#xff1f;喷绘布拼接常用2大方式01喷绘布粘接胶操作说明:1在喷绘布粘接时&#xff0c;粘接面需保持干净平整&#xff0c…

定义类 this_重新定义$ this?

定义类 thisI was wondering - can you redefine the special variable $this when in a method of a class. It turns out that yes, you can. 我想知道-您可以在类方法中重新定义特殊变量$ this吗&#xff1f; 事实证明&#xff0c;可以。 Consider this class: < ?php c…

过滤特征_特征选择方法:EGSG

1、前言特征选择方法大致上可以分为三类&#xff1a;包裹式、嵌入式、过滤式。其中包裹式和嵌入式特征选择方法都需要和模型进行交互&#xff0c;因此效率较低&#xff1b;过滤式特征选择方法不需要和模型进行交互&#xff0c;只需要根据数据本身的统计特性选择特征&#xff0c…