How do you determine the type of a variable?

Type to string comparisons were already deprecated and are now removed. You have to use the type directly (not the string), e.g. if type(arr) == array {...

5 Likes