loco41211 Posted May 7, 2010 Share Posted May 7, 2010 I can't work out how to use is_readable with an array of directories. Could anyone explain for me place how I could make this work? foreach ($users as $user) { $usernames[] = $user['username']; $homedirs[] = $user['home_dir']; } if (($usernames!="")) { if (is_readable($homedirs)) { array_push($path_to_public,$homedirs); } } I get the error: Notice: Array to string conversion Appreciate any help thank you in advace. Link to comment https://forums.phpfreaks.com/topic/200984-using-is_readable-with-arrays/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.