note 123987 added to splfixedarray.next
| From: | kishor10d at gmail dot com | Date: | Thu, 27 Jun 2019 12:27:56 +0000 |
| Subject: | note 123987 added to splfixedarray.next | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211396@lists.php.net to get a copy of this message | ||
<?php
/**
* Example : rewind();
*/
$arr = new SplFixedArray(5);
$a = $arr->key(); //Zero'th index
var_dump($a);
echo "<br>";
$arr->next(); // Shift to first index
$a = $arr->key();
var_dump($a);
echo "<br>";
$arr->next(); // Shift to second index
$a = $arr->key();
var_dump($a);
echo "<br>";
$arr->next(); // Shift to third index
$a = $arr->key();
var_dump($a);
echo "<br>";
?>
The above example will output:
int(0)
int(1)
int(2)
int(3)
----
Server IP: 208.43.231.9
Probable Submitter: 119.81.81.244 (proxied: 49.248.250.122)
----
Manual Page -- http://php.net/manual/en/splfixedarray.next.php
Edit -- https://master.php.net/note/edit/123987
Del: integrated -- https://master.php.net/note/delete/123987/integrated
Del: useless -- https://master.php.net/note/delete/123987/useless
Del: bad code -- https://master.php.net/note/delete/123987/bad+code
Del: spam -- https://master.php.net/note/delete/123987/spam
Del: non-english -- https://master.php.net/note/delete/123987/non-english
Del: in docs -- https://master.php.net/note/delete/123987/in+docs
Del: other reasons-- https://master.php.net/note/delete/123987
Reject -- https://master.php.net/note/reject/123987
Search -- https://master.php.net/manage/user-notes.php