How to align the arrow when not all have key-value pair?

I know that it is possible to align key value in an Array,

$array = array(
1 => 'a',
"1" => "b",
1.5 => "c",
true => "d",
'1' => "e",
);

But ... is it possible to align a mixed Array?, for example:

$array - array(
"a",
"b",
6 => "c",
"d'd",
);

2 comments
Comment actions Permalink

To be honest, not sure if it is even possible. By the way, how exactly would like to see it aligned, by values?

 

0
Comment actions Permalink

Like this

$array = array(
"a",
"1" => "b",
1.5 => "c",
true => "d",
"e",
);
0

Please sign in to leave a comment.