php - Array_Key_Exists... 0 != 0 / Working local, not working on server? -


i wrote script supposed create repeater array based on name key in $globals array. dons't work.

the script says, name wasn't found. can see name i'm looking @ bottom of page: debug.txt

at beginning can see array in search key. , can see, names exists key i'm looking for... names printed @ bottom of name needles script working with.

so, tried to check if method array_key_exists(...) getting key 0. also, method doesn't found key in array... can see in last line of debug.txt file...

i'm checking this:

if(array_key_exists(0, $globals["productsxml"])){         fwrite($myfile, "\n\n ja! 0 = 0");     }else{         fwrite($myfile, "\n\n nein! 0 != 0");     } 

and check names use 1 search keys:

function searchforgamexml($title){     if(array_key_exists($title, $globals["productsxml"])){         return true;     }else {         return false;     } } 

the $title needle @ bottom of page can see. don't get, why method isn't finding key...

and comes. tested code local on pc. , there working... same code... don't it.. error? why 0 not found in array?

greetings , thank you!


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -