kimerajamm Posted June 14, 2010 Share Posted June 14, 2010 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. :( :( :( Link to comment https://forums.phpfreaks.com/topic/204726-php-question/ Share on other sites More sharing options...
plutomed Posted June 14, 2010 Share Posted June 14, 2010 print_r($arrayName); Link to comment https://forums.phpfreaks.com/topic/204726-php-question/#findComment-1071824 Share on other sites More sharing options...
saviola Posted June 14, 2010 Share Posted June 14, 2010 echo "<pre>"; print_r($array); Link to comment https://forums.phpfreaks.com/topic/204726-php-question/#findComment-1071882 Share on other sites More sharing options...
plutomed Posted June 14, 2010 Share Posted June 14, 2010 echo "</pre>"; Need the closing tag aswell. Link to comment https://forums.phpfreaks.com/topic/204726-php-question/#findComment-1071886 Share on other sites More sharing options...
ignace Posted June 14, 2010 Share Posted June 14, 2010 How do I find out if an array has values posted to each of its elements? if (isset($_POST['field1'], $_POST['field2'], $_POST['field3'], ..)) { Returns false if any of those fields is not defined. Link to comment https://forums.phpfreaks.com/topic/204726-php-question/#findComment-1071975 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.