PHP Null Data Type - Full PHP 8 Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ต.ค. 2024

ความคิดเห็น • 38

  • @Vitalii-m6r
    @Vitalii-m6r ปีที่แล้ว +4

    This series of videos about PHP is super useful. Thanks

  • @nafisnawalnahiyan5032
    @nafisnawalnahiyan5032 ปีที่แล้ว +8

    This is not a series. This is a GOLD MINE. I cannot believe this is free. Thank you

  • @klerfe85
    @klerfe85 3 ปีที่แล้ว +9

    Great series! Can't wait for more advanced stuff to come.

    • @ProgramWithGio
      @ProgramWithGio  3 ปีที่แล้ว +1

      Thank you. New video about arrays coming soon & we'll move to section 2 of the course soon as well

  • @SynMlyn
    @SynMlyn 8 หลายเดือนก่อน

    Heartfelt thanks to Gio for guiding us through the intricacies of PHP!

  • @andergraund9327
    @andergraund9327 3 ปีที่แล้ว +4

    Great series, can't wait for the upcoming videos

    • @ProgramWithGio
      @ProgramWithGio  3 ปีที่แล้ว +1

      Thank you. New video about arrays coming soon

  • @iqorimane3575
    @iqorimane3575 ปีที่แล้ว +1

    GREAT TUTO!!!

  • @stefanbirsan3320
    @stefanbirsan3320 3 ปีที่แล้ว +2

    the best!

  • @samduss4193
    @samduss4193 ปีที่แล้ว

    Damn i will go over the all serie and this is sort of bible :) to go over every few month as refresher :) Thank you :)

    • @ProgramWithGio
      @ProgramWithGio  ปีที่แล้ว

      That's great, that was the motivation to sort of have this as a base guideline to learn PHP. I go back to some of my own videos from time to time to refresh my own memory so that's normal 👍

  • @raohammadraza7056
    @raohammadraza7056 6 หลายเดือนก่อน

    It's a very wonderful series!. Make more. one has created a series on Python. Create javascript. You teach very well.

  • @Thewatchervs
    @Thewatchervs ปีที่แล้ว +1

    Good job👌

  • @ballpen9157
    @ballpen9157 ปีที่แล้ว

    great vid. thanks.

  • @ilya_123__
    @ilya_123__ ปีที่แล้ว

    thank you

  • @memack101
    @memack101 2 ปีที่แล้ว

    Thank you.

  • @rxxt-sh1vj
    @rxxt-sh1vj 3 ปีที่แล้ว

    On 1:23 how did you convert the triple equal sign === to horizontal Triple equal sign. Which key did you press on the PHP storm??

    • @ProgramWithGio
      @ProgramWithGio  3 ปีที่แล้ว +2

      It's phpstorm setting. Turn on Font ligatures, as long as the font you are using supports ligatures you can turn it on. Search in the settings ligatures and you'll find it

  • @Herobotick2025
    @Herobotick2025 3 ปีที่แล้ว

    Great

  • @this.channel
    @this.channel 2 ปีที่แล้ว

    Is it correct to assign null as a null value for PDO?

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      Not sure what you mean, can you show me an example?

    • @this.channel
      @this.channel 2 ปีที่แล้ว

      @@ProgramWithGio
      Sure. So maybe the (INT) db column foo is 1 by default, but for some reason you want to pass null instead.
      $foo = null;
      $stmt = $pdo->prepare('SELECT * FROM users WHERE email = :email AND foo=:foo');
      $stmt->execute(['email' => $email, 'foo' => $foo]);
      $user = $stmt->fetch();

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      @@this.channel if you wanted to check for null in table you would use is null check instead of equal sign. So where foo is null.

    • @this.channel
      @this.channel 2 ปีที่แล้ว

      @@ProgramWithGio Oh yeah, of course. I gave a select example so I would write a conditional statement for that line.
      So something like...
      $foo = null;
      $stmt = $pdo->prepare('INSERT INTO users (email, foo) VALUES (:email, :foo)');
      $stmt->execute(['email' => $email, 'foo' => $foo]);

    • @ProgramWithGio
      @ProgramWithGio  2 ปีที่แล้ว

      @@this.channel yea you can do that if column is nullable

  • @jessieren6476
    @jessieren6476 3 ปีที่แล้ว

    Thank you