PHP has a lot of great functions and these are some I like to use and I will show you why.
This function is great for comparing a value to multiple options, especially while using it for if statements.
This is a handy function to turn an already existing array into a key-value array that can be used for looping through and use for a select field for example. This is for example really powerful if you are fetching a list from an API and you want the user to select one of the options for the next API call. The only downside is that you can't use it on a multi-layered array, for this I would advise using the collection class of Laravel
This is great if you have a fixed set of options that you want to overwrite based on some conditionals. I use this a lot in test files when I want to create multiple records that have the same default values for 90% of the time.