Suppose I have an array like this
$array = ['a','b','c','d']
Now in order to see it on screen, i have two options:
var_dump
or print_r
But their output is like
Array ( [0] => a [1] => b [2] => c [3] => d )
or
array(4) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" }
I sometimes find it difficult to read.
Is there any way to get the output like
['a','b','c','d']
so that it's easy to read?