Doubly Linked List:
use SplDoublyLinkedList;
$a = new SplDoublyLinkedList;
$arr=[1,2,3,4];
for($i=0;$i<count($arr);$i++){
$a->add($i,$arr[$i]);
}
$a->push(2);
$a->push(5);
echo $a;
HashMap
Queue
Heap
Stack
Doubly Linked List:
use SplDoublyLinkedList;
$a = new SplDoublyLinkedList;
$arr=[1,2,3,4];
for($i=0;$i<count($arr);$i++){
$a->add($i,$arr[$i]);
}
$a->push(2);
$a->push(5);
echo $a;
HashMap
Queue
Heap
Stack
For further actions, you may consider blocking this person and/or reporting abuse
MD ARIFUL HAQUE -
Nasrul Hazim Bin Mohamad -
Hana Sato -
MD ARIFUL HAQUE -
Top comments (0)