Sign in to follow this  
Followers 0
Der_Andi

Strange result from _ArraySearch()

2 posts in this topic

Hi,

i just used _ArraySearch() and it returned an unexpected value.

According to help file, this should not happen...

I have a 1-dim array:

Global $aUser[1] = 0oÝ÷ Ù8b±ªëk(¬¡û^jøu¼®¶²×ZÐ+­¬zW­yÛ«xÅç.*'Z§ºÈ§
ëk$j·!¶¬yªÜ×±¶+"Ø^jºÚËMúi­º¹Ú¶)Ý{tߦzÛ«X¬ªê-Ù¢«¨µú+{¦¦WºÚ"µÍÌÍÙ[HÐ^TÙXÚ
    ÌÍØUÙ   ÌÍØT]ÌWJ

Well, after this, $find = 0. Why 0? "Admin" ist not found in the array, so $find should be -1.

Do i forget something?

Doesn't it work, because i try to compare a integer with a string? 0 <==> "Admin"

If so, then --> :whistle:

So long,

Andi

Share this post


Link to post
Share on other sites



$aReturn[1] is "Admin", for example.

$find = _ArraySearch($aUser, $aReturn[1])

Well, after this, $find = 0. Why 0? "Admin" ist not found in the array, so $find should be -1.

well, did you really check if $aUser[0] is NOT equal "Admin"??

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0