Results 1 to 2 of 2

Thread: การทดสอบสถานะตัวแปร PHP

  1. #1
    Kittipong_kang
    Guest


    การทดสอบสถานะตัวแปร PHP

    ถามว่า Function
    isset();
    unset();
    empty();

    มันใช้งานเกี่ยวกับอะไร ใช้ยังไงอะ แล้วแล้วนิยมใช้ทำอะไรเหรอชอบตอบหน่อยครับ

  2. #2
    BingLi224
    Guest


    Re: การทดสอบสถานะตัวแปร PHP

    ผมรู้แต่ IsSet() ไว้ตรวจว่าตัวแปรนั้นเคย initialized หรือยังครับ

    เช่น
    if(IsSet($_POST))
    echo($_POST["txt"]);

    ไว้ตรวจว่ามีการส่ง HTTP POST มาหรือไม่ ถ้ามีก็ print ค่าของ element ชื่อ txt ที่ POST มา

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •