<?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"