php - how to create array that will print_r like this: array( array('foo' => 'bar')) -
how create array print_r this:
array( array('foo' => 'bar'))
because this:
$a = array( array('foo' => 'bar'))
will print this:
array( [0] => array ('foo' => 'bar'))
print_r
prints arrays showing indexes explicitly. there's no way customize this. if it's normal indexed array, show numeric indexes.
Comments
Post a Comment