I have an associative array like this:
$myarray = array('a' => 1, 'b' => 2, 'c' => 3);
And I want to show the array keys and values like this:
a is 1, b is 2, c is 3
I don't want to do this by using print_r or var_dump. And I don't want to use a foreach loop too. I just want to use a short code, I have tried this:
echo implode('', $myarray);
But that doesn't work too, because I can only display the key or only display the value of the array.