Home Backend Development PHP Tutorial gogo-数组里面的信息显示有关问题

gogo-数组里面的信息显示有关问题

Jun 13, 2016 pm 12:12 PM
array gt nbsp type

gogo----数组里面的信息显示问题
数组里面的数据如下

<br />Array<br />(<br />    [0] => Array<br />        (<br />            [tagname] => sa1<br />            [flag1] =>  <br />            [commid] => sa1<br />            [type] => 0<br />            [code] => Array<br />                (<br />                    [0] => 1 <br />                    [1] => 2 <br />                )<br /><br />            [opname] => Array<br />                (<br />                    [0] => sa1_a<br />                    [1] => sa1_b<br />                )<br /><br />            [sama_size] => 2<br />        )<br /><br />    [1] => Array<br />        (<br />            [tagname] => ma1<br />            [flag1] =>  <br />            [commid] => ma1<br />            [type] => 2<br />            [code] => Array<br />                (<br />                    [0] => 1 <br />                    [1] => 2 <br />                )<br /><br />            [opname] => Array<br />                (<br />                    [0] => ma_1<br />                    [1] => ma_2<br />                )<br /><br />            [sama_size] => 2<br />        )<br /><br />)<br />
Copy after login

在页面上创建一个table。然后显示数据。要实现的功能要按照下面提供的代码格式写,
<{assign var="temp_type" value=$selList[loop].type }>
<{$allarr_account_type[$temp_type]}>

------解决思路----------------------
还是处理你上次提交过来的数据吗
<br /><br />Array ( [mode] => SETPOINT [snstabId] => 49 [webctrl_page_token] => dd4be4ef0d797d21eeee32267ccfe87d [sel_c_id] => [topscrollleft] => 0 [p] => 1 [searchFlag] => page [member_id] => 1000257015 [pageSize] => 20 [orderby] => member_id [orderbyType] => desc [point] => fdfds [searchMembernickname] => [searchMemberId] => [topictimes1] => [topictimes2] => [pictimes1] => [pictimes2] => [setPointM] => [members] => Array ( [0] => 1000257015 [1] => 1000257014 [2] => 1000256473 [3] => 1000255958 [4] => 1000255957 [5] => 1000255755 [6] => 1000255751 [7] => 1000255750 [8] => 1000255748 [9] => 1000255747 [10] => 1000199511 [11] => 1000031784 [12] => 1000031760 [13] => 1000031716 [14] => 1000031715 [15] => 1000031714 ) [1000257015_point] => fdfds [1000257014_point] => [1000256473_point] => [1000255958_point] => [1000255957_point] => [1000255755_point] => [1000255751_point] => [1000255750_point] => [1000255748_point] => [1000255747_point] => [1000199511_point] => [1000031784_point] => [1000031760_point] => [1000031716_point] => [1000031715_point] => [1000031714_point] => ) <br />
Copy after login

这是你点击按钮时提交过去的数据,你在你的程序里 重新打印一下
echo "

";<br>print_r($_POST);die();<br>打印你自己看看 结果,然后告诉我你想怎么弄?说的详细点。<br><br><font color="#FF8000">------解决思路----------------------</font><br>具体是哪个问题? 上次的那个?还是新的问题? 你要怎么处理?你给的tpl参考代码 是什么意思?如果 实现图片效果,直接循环不就行了?现在问题是什么 我还没弄明白,再详细点?<br><font color="#FF8000">------解决思路----------------------</font><br>只有 code 和 opname有可能是数组,对吗?有没有其他元素也是数组的? code 和 opname 他们这个数组长度是固定的吗,现在他们都是2个,有没有可能是三个 四个?<div class="clear">
                 
              
              
        
            </div>
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Solution: Your organization requires you to change your PIN Solution: Your organization requires you to change your PIN Oct 04, 2023 pm 05:45 PM

Solution: Your organization requires you to change your PIN

How to adjust window border settings on Windows 11: Change color and size How to adjust window border settings on Windows 11: Change color and size Sep 22, 2023 am 11:37 AM

How to adjust window border settings on Windows 11: Change color and size

How to change title bar color on Windows 11? How to change title bar color on Windows 11? Sep 14, 2023 pm 03:33 PM

How to change title bar color on Windows 11?

How to enable or disable taskbar thumbnail previews on Windows 11 How to enable or disable taskbar thumbnail previews on Windows 11 Sep 15, 2023 pm 03:57 PM

How to enable or disable taskbar thumbnail previews on Windows 11

OOBELANGUAGE Error Problems in Windows 11/10 Repair OOBELANGUAGE Error Problems in Windows 11/10 Repair Jul 16, 2023 pm 03:29 PM

OOBELANGUAGE Error Problems in Windows 11/10 Repair

What are the differences between Huawei GT3 Pro and GT4? What are the differences between Huawei GT3 Pro and GT4? Dec 29, 2023 pm 02:27 PM

What are the differences between Huawei GT3 Pro and GT4?

Display scaling guide on Windows 11 Display scaling guide on Windows 11 Sep 19, 2023 pm 06:45 PM

Display scaling guide on Windows 11

10 Ways to Adjust Brightness on Windows 11 10 Ways to Adjust Brightness on Windows 11 Dec 18, 2023 pm 02:21 PM

10 Ways to Adjust Brightness on Windows 11

See all articles