TypeError thrown

strncmp(): Argument #1 ($string1) must be of type string, array given