note 55194 added to function.array-shift
| From: | lukaszdotdywickiDELatgmaildotcom at osu1 dot php dot net | Date: | Wed, 27 Jul 2005 12:48:34 +0000 |
| Subject: | note 55194 added to function.array-shift | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92552@lists.php.net to get a copy of this message | ||
Im using this function to browse arrays from database. For example data:
<?php
$data = array(
array('row 1-cell 1','row 1-cell 2'),
array('row 2-cell 1','row 2-cell 2'),
array('row 3-cell 1','row 3-cell 2'),
);
while($row=array_shift($data)) {
echo $row[0];
}
?>
Output:
row 1-cell 1
row 2-cell 1
row 3-cell 1
----
Manual Page -- http://www.php.net/manual/en/function.array-shift.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55194
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55194&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55194&report=yes
Search -- http://master.php.net/manage/user-notes.php