Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need this done in PHP ONLY, I be stuck Given the array called $input_array bel

ID: 645431 • Letter: I

Question

I need this done in PHP ONLY, I be stuck

Given the array called $input_array below, write a foreach loop that does the following:

Ignores anything in the list other than dog breeds.
Creates a new array with the following keys:

"value" with the value of the currently looped element (from $input_array)
"length" with the length of the string of the current element
"random" with a random value between 0 and the length of the current element times 3
"timestamp" with the current unix timestamp
"quality" which should be a randomly selected string

Possible values should be: High, Medium, or Low

Adds the created array to another array called $output[] with the value from $input_array as the key

Explanation / Answer

Hope it may helps you...

Answer for string to array is:

<?php


$input (below)
$value=array();

$arr = array();
foreach ($arr as dogbreeds) {
$value =$arr;

$length=$arr.index();

$timestamp=$time
}

?>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote