php foreach with multidimensional array

后端 未结 12 1618
一向
一向 2020-11-27 05:10

I\'m developing a php app that uses a database class to query mySQL.

the class is here: http://net.tutsplus.com/tutorials/php/real-world-oop-with-php-and-mysql/

12条回答
  •  春和景丽
    2020-11-27 05:24

    Holla/Hello, I got it! You can easily get the file name,tmp_name,file_size etc.So I will show you how to get file name with a line of code.

    for ($i = 0 ; $i < count($files['name']); $i++) {
        echo $files['name'][$i].'
    '; }

    It is tested on my PC.

提交回复
热议问题