What is the significance of $key => $value in PHP?
In PHP, $key => $value is a way to iterate over an associative array where $key represents the key of the array element and $value represents the corresponding value. This is commonly used in loops to access and manipulate key-value pairs in an array. Example:
// Iterate over an associative array using $key => $value
$fruits = array("apple" => "red", "banana" => "yellow", "grape" => "purple");
foreach($fruits as $key => $value) {
echo "The color of " . $key . " is " . $value . "<br>";
}