• PHP Video Tutorials

PHP - Ds Map skip() Function


Advertisements

Ds\Map::skip() function can return the pair at a given positional index.

Syntax

public Ds\Pair Ds\Map::skip( int $position )

Ds\Map::skip() function can return the pair at a given zero-based position.

Ds\Map::skip() function can return the Ds\Pair at a given position. This function can throw OutOfRangeException if the position is not valid.

Example

<?php  
   $map = new \Ds\Map(["a" => 10, "b" => 20, "c" => 30]);  
   print_r($map->skip(1));  
   
   $map = new \Ds\Map(["1" => "Tutorials", "2" => "Point", "3" => "India"]);  
   print_r($map->skip(2)); 
?>
php_function_reference.htm

Useful Video Courses


Video

PHP Online Training

45 Lectures 9 hours

Malhar Lathkar

Video

Become PHP Facebook Developer: Password-Less Authentication

34 Lectures 4 hours

Syed Raza

Video

Ultimate PHP & MySQL Web Development Course & OOP Coding

84 Lectures 5.5 hours

Frahaan Hussain

Video

Learn PHP from Scratch

17 Lectures 1 hours

Nivedita Jain

Video

E Commerce Website Development In PHP With PDO

100 Lectures 34 hours

Azaz Patel

Video

PHP in Telugu

43 Lectures 5.5 hours

Vijay Kumar Parvatha Reddy

Advertisements