Aditya Sharma

Type Hinting and Return types in Functions-PHP

PHP is the language that allows the developer to be more specific about what functions are getting and returning. Also,  we have seen the implementation of the user-defined functions in PHP in our previous post: https://padhle.com/functions-in-php-user-defined/ We can—always optionally— specify the type of argument that the function needs (type hinting), and the type of result the function …

Type Hinting and Return types in Functions-PHP Read More »