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:
 
        Reviewed by technical_saurabh
        on 
        
December 24, 2020
 
        Rating: 
       Reviewed by technical_saurabh
        on 
        
December 24, 2020
 
        Rating:
 
        Reviewed by technical_saurabh
        on 
        
December 24, 2020
 
        Rating: 

![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()]. 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()].](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinZJArFPuTh1Vpd-mbvP36SPoNiCpp2k6iKNq6XTN_0Hajn1hoced6x6JzwUEycLXZoRVhyeiB65-PN8sDx510odudRrI6PHRzr27mancfh_UTQq-_23lYSp7vjMpn7MfgakDvCGt-KQgi/w640-h362/Untitled.png)
 
 
No comments:
Post a Comment