note 110804 added to multipleiterator.construct
| From: | laura_trea at NOSPAM dot hotmail dot com | Date: | Mon, 10 Dec 2012 19:21:39 +0000 |
| Subject: | note 110804 added to multipleiterator.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192445@lists.php.net to get a copy of this message | ||
Here an other example
<?php
$flag=MultipleIterator::MIT_KEYS_ASSOC;
$people = new ArrayIterator(array('John', 'Jane', 'Jack',
'Judy'));
$roles = new ArrayIterator(array('Developer', 'Scrum Master', 'Project
Owner','Client'));
$team = new MultipleIterator($flag);
$team->attachIterator($people, 'person');
$team->attachIterator($roles, 'role');
foreach ($team as $member) {
$name = $member['person'];
$charge = $member['role'];
echo $name ." is a ".$charge;
echo "<br/>";
}
?>
----
Server IP: 69.147.83.199
Probable Submitter: 72.52.91.2 (proxied: 187.204.155.225)
----
Manual Page -- http://php.net/manual/en/multipleiterator.construct.php
Edit -- https://master.php.net/note/edit/110804
Del: integrated -- https://master.php.net/note/delete/110804/integrated
Del: useless -- https://master.php.net/note/delete/110804/useless
Del: bad code -- https://master.php.net/note/delete/110804/bad+code
Del: spam -- https://master.php.net/note/delete/110804/spam
Del: non-english -- https://master.php.net/note/delete/110804/non-english
Del: in docs -- https://master.php.net/note/delete/110804/in+docs
Del: other reasons-- https://master.php.net/note/delete/110804
Reject -- https://master.php.net/note/reject/110804
Search -- https://master.php.net/manage/user-notes.php