|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
is_array() being strange
okay heres the code:
$que = is_array($known_traps); echo "n!! $que !!nn"; its abit of code I'm using in a de-bugging attempt and what I was hoping for was a true or false output. But noooo, I get a nasty blank space instead. Can anyone suggest why this isn't working. It looks to me like is_array isn't returning a value but thats silly. Am I trying to use it wrong? |
|
#4
|
|||
|
|||
|
RE: is_array() being strange
when a bool variable is converted to string (ie when u try to echo it) it is converted to "1" or ""!
to see all kinds of variables (even arrays) use var_dump($var) or in your case: var_dump($que) |
|
#5
|
|||
|
|||
|
RE: is_array() being strange
or you could use the print_r() function
Quote:
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > is_array() being strange |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|