Hi,
How do I find out if an array has values posted to each of its elements? I need to know that EVERY element has been filled out.
Regards,
geetha
Scripts Directory
array has values posted to each of its elements
Moderator: General Moderators
-
geethalakshmi
- Forum Commoner
- Posts: 31
- Joined: Thu Apr 24, 2008 10:38 pm
Re: array has values posted to each of its elements
The following code will print all of the elements in an array until an element does not exist
Hope that is what you are looking for.
Code: Select all
for($x=0;$array[$x];$x++){
echo $x.": ".$array[$x]."<br>";
}