Der_Andi Posted February 26, 2007 Posted February 26, 2007 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Ð+¬zWyÛ«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 --> So long, Andi
/dev/null Posted February 26, 2007 Posted February 26, 2007 $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 *
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now