Concept Flow - Gettype and typeof checks
Start
Variable defined
Use gettype()
Output type as string
Use get_debug_type() (PHP 8.0+)
Output type as string
End
The program defines a variable, then uses gettype() and get_debug_type() to check and output its type as a string.