PHP Array printing in a different format -


i'm having troubles printing array in following format:

"key, value" 

my current array following format:

array(51) {     ["t"]=>         int(3)     ["i"]=>         int(3)     ["co"]=>         int(3)     ["http"]=>         int(3)     ["it"]=>         int(2)     ["new"]=>         int(1)     ["project"]=>         int(1) } 

any idea on can format array shows need?

do this:

<?php foreach($array $key => $value) {     echo '"'.$key.', '.$value.'"';     echo '<br/>'; }  

where $array initial array.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -