10: Type Declarations In OOP PHP | Type Hinting In PHP | Object Oriented PHP Tutorial | PHP Tutorial



In this OOP PHP tutorial I will show how to use Type Declaration. Type Declaration (previously known as Type Hinting) is a way for us to only accept specific types of data, when we pass it into a function or method. Type Declaration is not specific to OOP PHP, and is also used in Procedural PHP.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to…

, , , , , , , ,

13 thoughts on “10: Type Declarations In OOP PHP | Type Hinting In PHP | Object Oriented PHP Tutorial | PHP Tutorial

  1. Hi everyone!
    It has been a while since the last upload. I have had my office under maintenance, and I have had technical issues with my PC and the equipment I use to record videos, which is the reason why it took so long. I'm still having technical issues but I'm hoping that I'll manage recording until I get it fixed.

  2. Hi Daniel,
    I have made a registration form using your tutorials and was wondering if there is a way to get and show errors on the form without using the URL and GET method.

  3. Hallo, can you make a video about how to scale Ifram to work width the content? I am using that for some of my client`s website for embedding booking website for courses?

  4. That is a great thing, but i think that it doesn't matter what type is user giving because anything that is typed in forms is going to be string, and that is the only way that we let user communicate with our app, but anyway i didn't know about this and it's great that php is going in that direction

Leave a Reply

Your email address will not be published. Required fields are marked *