SubhanUllah Posted October 24, 2022 Report Posted October 24, 2022 Use count() or sizeof() as follows: $array = [1, 2, 3]; $array_size = count($array); // 3 // or $array_size = sizeof($array); // 3 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.