Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

array_start(3) [debian man page]

array_start(3)						     Library Functions Manual						    array_start(3)

NAME
array_start - get pointer to first element in array SYNTAX
#include <array.h> void* array_start(array* x); array x; t* p = array_start(&x); DESCRIPTION
array_start is the same as array_get with pos equal to 0. SEE ALSO
array_allocate(3), array_get(3), array_fail(3) array_start(3)

Check Out this Related Man Page

RESET(3)								 1								  RESET(3)

reset - Set the internal pointer of an array to its first element

SYNOPSIS
mixed reset (array &$array) DESCRIPTION
reset(3) rewinds $array's internal pointer to the first element and returns the value of the first array element. PARAMETERS
o $array - The input array. RETURN VALUES
Returns the value of the first array element, or FALSE if the array is empty. EXAMPLES
Example #1 reset(3) example <?php $array = array('step one', 'step two', 'step three', 'step four'); // by default, the pointer is on the first element echo current($array) . "<br /> "; // "step one" // skip two steps next($array); next($array); echo current($array) . "<br /> "; // "step three" // reset pointer, start again on step one reset($array); echo current($array) . "<br /> "; // "step one" ?> SEE ALSO
current(3), each(3), end(3), next(3), prev(3). PHP Documentation Group RESET(3)
Man Page