what is the function to kinda search in a config file. What im trying to do is make kinda codes like a giftcard and people can redeem them but if the code is not in config then they cant redeem i have look everywhere please help me so how do i do that -Besher
Create an array with the key 'giftcards' inside the config file with all the codes on it. if(in_array($code, Config->get("giftcards"))) {}
Thanks for the help, But if i want to add a code to the array how do i do it with a command i know how to do args but dont know the functions
PHP: $giftcards = Config->get("giftcards");$giftcards[] = $code;Config->set("giftcards", $giftcards);Config->save();