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

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -