Well, i get it that - to access an method of an object of a class we use ->
sign. But why is =>
sign used for ? Like in the below code its used for index and value of array:
<?php
$a=array();
$a['Ground'] = 5.95;
$a['2nd day'] = 6.8;
$a['night'] = 7;
foreach ($a as $key => $value) {
$msg = $key . '=' . $value .'<br>';
echo $msg;
}
?>
But what does it mean and when to use it?