Hi,
the sample string 'this.getTemp' can never match, because of strtolower() of the flattened array.
There are two ways to fix that:
- change the sample string to 'this.gettemp' (lowercase)
- or use stripos() instead of strpos() to search for the strings
- or remove the strtolower()
Thank you!