• PHP Video Tutorials

PHP - Pair Class Functions


Advertisements

A pair can be used by Ds\Map to pair keys with the values.

Syntax

Ds\Pair implements JsonSerializable {

   /* Methods */
   public __construct([ mixed $key [, mixed $value ]] )
}
Sr.No Functions & Description
1

Ds\Pair::clear() Function

This function can remove all values from the pair.

2

Ds\Pair::__construct() Function

This function can create a new instance.

3

Ds\Pair::copy() Function

This function can return a shallow copy of the pair.

4

Ds\Pair::isEmpty() Function

This function can return whether the pair is empty.

5

Ds\Pair::jsonSerialize() Function

This function can return a representation that can be converted to JSON.

6

Ds\Pair::toArray() Function

This function can convert a pair to an array.

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