Posted On: Feb 22, 2018
In PHP5 or above, type hinting is a process used to specify the data type of a given argument. This is mainly used in a function declaration. Whenever the function is called, PHP checks if the arguments are of the type preferred by the user or not. If the argument is not of the specified type, the run time will display an error and the program will not execute.
Never Miss an Articles from us.