OOP PHP | Method Chaining #5

preview_player
Показать описание
Object Oriented Programming ( OOP ) in PHP.
How to use Method Chaining.

====================Support ============================

=====================================================

================You May Also Like =======================================

==================FOLLOW ME ==================

Subscribe for New Releases!

(ask me questions!)

--- QUESTIONS? ---

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Thanks for all your support!

LARAVEL 5.4 Tutorial | Cara Instal LARAVEL 5,4 dari awal Part 1 | Bitfumes

Laravel 5.4 Tutorial | Come installare laravel 5,4 da zero Parte 1 | Bitfumes

-~-~~-~~~-~~-~-
Please watch: "Laravel 5.4 Tutorial | Email From Server (Godaddy) #3 | Part 26 | Bitfumes"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

You should name the object different than its own property (bill) to avoid confusion. For example $check_bill or $total_bill.

petruciucur
Автор

Elagant-o!! fun lesson, clear and helpful. Thanks.

jasminekrystlecaldaira
Автор

You can't imagine, this is very relevant in 2019. Thank you for teaching me about method chaining.

davidofug
Автор

Why did you add the bill at every end of the instances?

adesina-sd
Автор

So we need to include the instance name at the end of the echo.?

maruatajongte
Автор

Salute to your efforts !.. Loved it.. Thanks bro !.. Very helpful !

muslimrao
Автор

Can you share the code you have written above?

pratikbhatt
Автор

congratulations ! I don't really understand how the numbers get added, because I don't even see + sign ....little bit confusing ! please wish you answer...good work

rolandpierrelouis
Автор

What does "return $this" do? You did not explain it very clearly. It's quite confusing.

chieeeffaatecchh
Автор

<?php
class Bill{
public $dinner = 20;
public $dessert = 5;
public $coldDrink=3;
public $bill;

public function dinner($person){

return $this->bill;

}
public function dessert($person){

return $this->bill;

}
}
$bill = new Bill();
echo

why this is not working.i have returned $this->bill in both the functions it is giving m error.whats the logic behind this.and how not returning $this->bill ws working can u pla explain kindly

alireza
Автор

hi thanks for the video pls can you repeat $this keyword

husseinhadliye
Автор

I didn't understood
echo $bill->dinner(2)->bill;
The (->bill) part..

thaparoshan
Автор

Do you wanna do another video with the static keyword on methods? Thank you. I will definitely donate and subscribe.

davidofug