In versions prior to PHP 8.0, in order to check if a string contains a given substring, we can use the strpos function. This function returns the position of the...
Since PHP 5.5, we can use the special ::class constant which allows getting a fully qualified name (FQN) of the class by using ClassName::class syntax.
Let's say we have a...