Warning: in_array() [function.in-array]: Wrong datatype for second argument in

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • usafshah
    New Member
    • Nov 2006
    • 104

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in \tickets\functi ons_ticketsui.p hp on line 196




    Can Any one tell me what this warning means ?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    The answer is in the standard PHP documentation on arraya see )]bool in_array ( mixed needle, array haystack [, bool strict] )
    It means that the data type of the haystack does not confirm to the data type of the needle. Or that the haystack is not an array.

    Ronald :cool:

    Comment

    Working...