note 101368 deleted from function.is-array by danbrown

From: Date: Sun, 12 Dec 2010 20:43:30 +0000
Subject: note 101368 deleted from function.is-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174834@lists.php.net to get a copy of this message
Note Submitter: piter1002 at bk dot ru ---- <?php ini_set('display_errors',1); error_reporting(E_ALL); $m=array( array ('abba', 'beatles','bad boys'), array ('fun', 'modern', 'c c catch'), 'blueeee', 'red', 'green', array('day', 'bay',), 'fedor'=>'maks', 'baby'); foreach($m as $new) { if(is_string($new)) { echo "$new <br>"; } if(is_array($new)) { foreach($new as $nnew) { echo "$nnew <br>"; } } } ?>

« previous php.notes (#174834) next »