软件吧-RJ8.NET
Home
Ansible
AWS
DevOps
Kubernetes
Monitoring
Terraform
Personal Blog
Focus on IT technology knowledge learning and sharing
Main page
PHP
Main content
php如何获取用户输入内容
September 17, 2024
7hotness
0likes
0comments
方法1:
$a =
readline
(
"请输入内容:"
)
;
$b =
readline
(
"请输入内容:"
)
;
echo
"您输入的内容是: "
.
(
$a+$b
)
;
方法2:
echo
"请输入内容:"
;
$input =
fgets
(
STDIN
)
;
echo
"您输入的内容是: "
. $input;
TimLi
This person is a lazy dog and has left nothing
Like
< Last article
Next article >
Comments
Cancel
Δ
Archives
September 2024
March 2024
Categories
DevOps
Kubernetes
Linux
PHP
ServiceNow
Comments