[eluser]TheFuzzy0ne[/eluser]
Let me reformat the array you posted above (which next time, you can do yourself
), and then hopefully you'll see the bigger picture.
Code:
array(2) {
[0]=> array(14) {
["file_name"]=> string(8) "test.txt"
["file_type"]=> string(10) "text/plain"
["file_path"]=> string(35) "/usr/local/var/www/Test/ci/uploads/"
["full_path"]=> string(43) "/usr/local/var/www/Test/ci/uploads/test.txt"
["raw_name"]=> string(4) "test"
["orig_name"]=> string(8) "test.txt"
["client_name"]=> string(8) "test.txt"
["file_ext"]=> string(4) ".txt"
["file_size"]=> float(0.01)
["is_image"]=> bool(false)
["image_width"]=> string(0) ""
["image_height"]=> string(0) ""
["image_type"]=> string(0) ""
["image_size_str"]=> string(0) ""
}
[1]=> array(14) {
["file_name"]=> string(9) "test2.txt"
["file_type"]=> string(10) "text/plain"
["file_path"]=> string(35) "/usr/local/var/www/Test/ci/uploads/"
["full_path"]=> string(44) "/usr/local/var/www/Test/ci/uploads/test2.txt"
["raw_name"]=> string(5) "test2"
["orig_name"]=> string(9) "test2.txt"
["client_name"]=> string(9) "test2.txt"
["file_ext"]=> string(4) ".txt"
["file_size"]=> float(0.01)
["is_image"]=> bool(false)
["image_width"]=> string(0) ""
["image_height"]=> string(0) ""
["image_type"]=> string(0) ""
["image_size_str"]=> string(0) ""
}
}
When I use print_r(), I find it more useful to use it like this:
Code:
echo '<pre>',print_r($arr),'</pre>';
Then the output is a lot more readable. You can do the same with var_dump(), but it's a little less readable.