In my php foreach array want to control on showing no of items

hello,
I got some issue I wan to control my for each array I have multiple arrays but I wan to show an only specific number of item in that every array what to do
here is the link https://www.thefancytext.com/cool-Symobols
note: This array data is not come from the database otherwise I use limit but its hardcode array

Hello @classstatus0. Giving us the link to your site isn’t going to help anyone to help you. We need to see your PHP code.

i don’t really get what you mean, but referring to limit you may want to use array_slice, it works similar

https://www.php.net/manual/de/function.array-slice.php

ok thanks, I will try array_slice

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.