Assignment NO: 1 Array & String
Program 2 : Write a menu driven PHP program to perform the following operations on an associative array:
i. Display the elements of an array along with the keys.
ii. Display the size of an array
iii. Delete an element from an array from the given index.
iv. Reverse the order of each element’s key-value pair.[Hint: use array_flip()]
v. Traverse the elements in an array in random order [[Hint: use shuffle()].
Answer :
File : Index.php
PHP Assignment No : 1 Array & String
Reviewed by technical_saurabh
on
December 24, 2020
Rating:
![PHP Assignment No : 1 Array & String](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7-8tNLYHwnMpoYaRMYWcaueN5WQH9Adued7aTmyIjXKB4mpANSNqpoLaU6q8HpE5YFg9quDSh9wCeJuQG4FdkQE3ed1Mh9O7sD01L1fAUg01A_Lzo0T6th6vQ91mmW_2S_ilReyySEe0H/s72-w400-c-h216/download.png)
No comments:
Post a Comment