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

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

filehandler - java open files not cleaned, even when the process is killed -

gridview - Yii2 DataPorivider $totalSum for a column -