05.
Arrays Level 3: We put Arrays in your Arrays!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
7 Comments
I'm using apache on xammp stack and php 8.2 on windows 11 home. Everything works fine except images. Only a small icon displays, not the actual image. Do you have any idea about what might cause this problem and what the fix might be?
Thanks, Jeanne
Hey Jeanne,
Try to debug the image URL, i.e. open the image in a different tab and compare its URL with the page URL. My guess is that the URLs are different, or different ports, etc. You would need to figure out why that happens and try to standardize URLs, maybe tweak your XAMPP configuration and restart it, or try to search that host/port in the project code and change its configuration instead. So, in short, I bet the URLs are different and so some URLs work and some do not.
Cheers!
Thanks for the suggestions. It works now that I changed the img src path to /airpupmeow/images.
Hey Jeanne,
Awesome, glad to hear you were able to fix it ;)
Cheers!
I didn't know you can do recursive search with `count()` - thanks!
Hey boykodev
What do you mean with "recursive search"?
count()function is meant to "count" how many items does an array (or an object that implements "Countable" interface) contains, and it will return an integer number.Cheers!
I meant that if you provide second argument to count() function, then it will recursively count number of elements not only in provided array, but in all the arrays inside as well.
"Houston: no signs of life"
Start the conversation!