PHP array minor problem -


i'm not sure how explain this. it's simple can't fathom why it's not working.

i have loop. puts bunch of strings array. if fill single variable given string, output perfectly.

but filling an array strings make give me dreaded:

array array array array array array array array

note: strings not 'array'.

the way loop is:

 while(...)  {      $arr[] = $resultfromloop;  } 

here var_dump.

    array(1) {       ["tagname"]=>       string(5) "magic"     }     array(1) {       ["tagname"]=>       string(4) "nunu"     }     array(1) {       ["tagname"]=>       string(5) "books"     }     array(1) {       ["tagname"]=>       string(0) ""     }     array(1) {       ["tagname"]=>       string(3) "zzz"     }     array(1) {       ["tagname"]=>       string(4) "grey"     }     array(1) {       ["tagname"]=>       string(3) "new"     }     array(1) {       ["tagname"]=>       string(6) "flight"     } 

this because you're working array string.

it puts bunch of strings array.

nope, there no strings. gave magic var_dump($resultfromloop) function, you're lazy use debugging code (because there so, can ask question , don't bother thinking)


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -