How do I find if an array has one or more elements?
I need to execute a block of code where the size of the array is greater than zero.
if ($result &
@Sajid Mehmood in PHP we have count() to count the length of an array, when count() returns 0 that means that array is empty
Let’s take an example for your understanding: