I got a strange error I am a little confused over
Strict Standards: Only variables should be passed by reference in /hermes/walnaweb10a/b2054/moo.teamluke/svr/my_property_detail.php on line 155 Strict Standards: Only variables should be passed by reference in /hermes/walnaweb10a/b2054/moo.teamluke/svr/my_property_detail.php on line 155 Strict Standards: Only variables should be passed by reference in /hermes/walnaweb10a/b2054/moo.teamluke/svr/my_property_detail.php on line 155
Here is the foreach loop it seems to be complaining about
foreach ($dir_contents as $file) {
$file_type = strtolower(end(explode('.', $file)));
if ($file !== '.' && $file !== '..' && in_array($file_type, $file_display) == true) {
echo '<img src="', $dir, '/', $file, '" alt="', $file, '" class="img-responsive img-thumbnail" width="100px"/>';
}
}
The complaint is about the strtolower() function but don’t know how to pass a reference to the variable.