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
Post a Comment