note 123928 added to splfixedarray.current
| From: | kishor10d at gmail dot com | Date: | Wed, 12 Jun 2019 08:49:53 +0000 |
| Subject: | note 123928 added to splfixedarray.current | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211236@lists.php.net to get a copy of this message | ||
<?php
/**
* current() : It returns current element in the SplFixedArray.
*/
$arr = new SplFixedArray(5);
$arr[1] = 2;
$arr[2] = "foo";
var_dump($arr->current());
echo "<br>";
$arr->next();
var_dump($arr->current());
echo "<br>";
$arr->next();
var_dump($arr->current());
echo "<br>";
?>
The output of this will be:
NULL
int(2)
string(3) "foo"
----
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.current.php
Edit -- https://master.php.net/note/edit/123928
Del: integrated -- https://master.php.net/note/delete/123928/integrated
Del: useless -- https://master.php.net/note/delete/123928/useless
Del: bad code -- https://master.php.net/note/delete/123928/bad+code
Del: spam -- https://master.php.net/note/delete/123928/spam
Del: non-english -- https://master.php.net/note/delete/123928/non-english
Del: in docs -- https://master.php.net/note/delete/123928/in+docs
Del: other reasons-- https://master.php.net/note/delete/123928
Reject -- https://master.php.net/note/reject/123928
Search -- https://master.php.net/manage/user-notes.php