PHP Programing language

Write A Program to create a Array Chunk
Previous Home Next
<html>
<head>
<title>array chunk</title>
</head>
<body>
<?php
$A = array("Aditya","Mukund","Harsh",
"Somaru","Sachine","Ramesh","Suresh");
// shuffle the cards
shuffle($A );
// Use array_chunk() to divide the 
cards into four equal "hands"
$hands = array_chunk($A , 4);
print_r($hands);

?>
</body>
</html>

 

Output:

Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: