一个PHP算法方面的计算题。
Jun 20, 2016 pm 12:34 PM aaa = trim(request("aaa"))
bbb = trim(request("bbb"))
ccc = trim(request("ccc"))
ddd = trim(request("ddd"))
eee = trim(request("eee"))
fff = trim(request("fff"))
ggg = trim(request("ggg"))
hhh = trim(request("hhh"))
。。。。。。。。。。
。。。。。。。。。。
?>
如何用PHP快速计算出本页面到底接收了几个不为空的参数?,并把参数个数及参数值逐一echo出来。
(注意:这些参数中,如果是带有半角逗号或空格时,需要按照多参数来计算。并用split拆分开,也逐一echo出来)
此问题之前已经有一个很好的ASP写法,由于初学PHP,所以不知道怎么改写为PHP的。
网址如下: http://bbs.csdn.net/topics/391906200
回复讨论(解决方案)
1 |
|
1 |
|
谢谢版主,请看私信,因为我还希望有循环功能,以便逐一处理表单每一个字段的数据并写入数据库,保存这些查询条件。
1 |
|
1 |
|
赞一个啊!!版主真棒。
@傲雪星枫 老大,我又追问了一贴,请你回答一下我啊。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

Simplified HTTP Response Mocking in Laravel Tests

Build a React App With a Laravel Back End: Part 2, React

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon

Announcement of 2025 PHP Situation Survey
