How can I check the number of values in an array and echo them in my PHP script?
How can I check the number of values in an array and echo them in my PHP script?
Collapse
X
-
hiOriginally posted by olskarHow can I check the number of values in an array and echo them in my PHP script?
its so simple!!!!!
you can use count function to count nuber of elements in array.
So if your array named $test_array then
using
for($num=0;$num <count($test_ar ray);$num++){
echo $test_array[$num];
}
you can echo the elements of array
:) -
Comment