当前位置:网站首页>PHP defines the array using commas,
PHP defines the array using commas,
2022-07-27 07:09:00 【Tie Zhu】
One . Preface
In the process of looking at the code , Found a strange code , And Baidu hasn't come out yet... What's the use , So here's a record of .
Code up :
if (in_array($test, [1,])) {
}
// This [1,]
Two . Test it
$test_id = 10;
$arr = [1,];
if(in_array($test_id,$arr)){
print_r("yes");
}
print_r($arr);
//====================
result :
Array
(
[0] => 1
)
in other words , This gadget is equivalent to an ordinary definition array [1], I didn't find anything else special ... If a big man sees and just knows this , I hope you can give me some advice
end
边栏推荐
- MySQL的基本语句(1)—增删改查
- deepsort源码解读(三)
- Gbase 8C - SQL reference 6 SQL syntax (11)
- 基于SSM医院预约管理系统
- How can chrome quickly transfer a group of web pages (tabs) to another device (computer)
- DNA modified near infrared two region GaAs quantum dots | GaAs DNA QDs | DNA modified GaAs quantum dots
- Li Hongyi 2020 deep learning and human language processing dlhlp core resolution-p21
- CdS quantum dots modified DNA | CDs DNA QDs | near infrared CdS quantum dots coupled DNA specification information
- What is the reason why dragging the timeline is invalid when playing device videos on the easycvr platform?
- O2O电商线上线下一体化模式分析
猜你喜欢

【12】 Understand the circuit: from telegraph to gate circuit, how can we "send messages from thousands of miles"?

脱氧核糖核酸DNA改性近红外二区砷化镓GaAs量子点|GaAs-DNA QDs|DNA修饰GaAs量子点

Visual horizontal topic bug1:filenotfounderror: could not find module 'mvcameracontrol dll‘ (or one of it

Reasoning speed of model

Speech and language processing (3rd ed. draft) Chapter 2 - regular expression, text normalization, editing distance reading notes

强网杯2021 pwn 赛题解析——babypwn

AI:业余时间打比赛—挣它个小小目标—【阿里安全×ICDM 2022】大规模电商图上的风险商品检测比赛

Li Hongyi 2020 deep learning and human language processing dlhlp conditional generation by RNN and attention-p22

脱氧核糖核酸DNA修饰氧化锌|DNA修饰纳米金颗粒|DNA偶联修饰碳纳米材料

基于SSM医院预约管理系统
随机推荐
基于SSM实现的校园新闻发布管理系统
deepsort源码解读(二)
Digital image processing Chapter 1 Introduction
R2live code learning record (3): radar feature extraction
[latex format] there are subtitles side by side on the left and right of double columns and double pictures, and subtitles are side by side up and down
DNA coupled PbSe quantum dots | near infrared lead selenide PbSe quantum dots modified DNA | PbSe DNA QDs
Auto encoder (AE), denoising auto encoder (DAE), variable auto encoder (VAE) differences
VScode连接远程服务器开发
Express receive request parameters
Day012 一维数组的应用
Leetcode series (I): buying and selling stocks
基于SSM图书借阅管理系统
deepsort源码解读(六)
Dsgan degenerate network
线性表 -- 栈和队列
大疆livox定制的格式CustomMsg格式转换pointcloud2
Basic statement of MySQL (1) - add, delete, modify and query
Mysql database
O2O电商线上线下一体化模式分析
Datascience: data generation adds a small amount of noise (customizable noise) to the original data to realize the construction of new data (dataframe format data storage case)