Welcome Guest, Not a member yet? Register   Sign In
[Solved] Best method question
#3

(02-26-2016, 04:46 PM)Diederik Wrote: The directory_map() function gives you back a nested array. If you loop through it you should perform an extra verification to check if the value is a string (containing your image file name) or an array (containing all the files in the sub directory).

PHP Code:
foreach ($cached_images as $position => $image) { 
 
 if (is_string($image)) {
 
   ...
 
 }


thanks for that I will read more on is_string that is a new one for me.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
[Solved] Best method question - by wolfgang1983 - 02-26-2016, 03:35 PM
RE: Best method question - by Diederik - 02-26-2016, 04:46 PM
RE: Best method question - by wolfgang1983 - 02-26-2016, 05:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB