Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
fromUse
Study_Note
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Study_Note
/
php_function.txt
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
35 lines (18 loc) · 1.29 KB
master
Breadcrumbs
Study_Note
/
php_function.txt
Copy path
Top
File metadata and controls
Code
Blame
35 lines (18 loc) · 1.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# is_set() 判断某个变量是否存在 [ 1/true , false ]
# un_set() 销毁某个已经存在的变量 [ 1/true, false ]
# reset() 将数组的指针指向数组第一个元素
# mt_rand(min,max); 随机生成一个min~max之间的整数 [ 范围包括负数 结果就会有负数 ]
# is_int() ,is_integer() 判断某个变量是否是数字 或者 数字字符串 [ 1 /true, false ] 数字字符串不起用
# is_flaot(),is_double() 判断某个变量是否是浮点数 [ 1/true,false ] 数字字符串不起用
# is_string 判断变量是否是字符串 [ 1/true, false]
# is_array() 判断某个变量是否是数组 [ 1/true, false ]
# number_format(args,args) 格式化数字字符串 参数2:指定数值保留小数点后 的位数 例如 100000000 格式化:100,000,000
# min() 求最小值或 数值数组的最小值
# max() 求最大值或 数值数组的最大值
# round() 四舍五入 例如 10.88 最后结果11
# floor() 舍去法取整 例如 10.88 最后结果10
# abs() 绝对值 例如 -6 最后结果 6
# ceil() 进一取整法
# print_r() 大印易于理解的信息 例如数组
# array_unique($arr) 返回无重复值的新数组 [ 针对的是值,key除外 ]
# array_flip($arr) 返回 调换key和value 的一个新数组
You can’t perform that action at this time.