ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Brand & Authority => ข้อความที่เริ่มโดย: m3030001 ที่ 15 สิงหาคม 2019, 21:28:33



หัวข้อ: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: m3030001 ที่ 15 สิงหาคม 2019, 21:28:33
public function GetBalance () {
      if (is_null($this->access_token)) return false;
      return $this->request("/api/v1/profile/balance/".$this->access_token);
   }


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: dekdoo ที่ 15 สิงหาคม 2019, 21:56:41
ฟังก์ชั่นนี้เขาเขียนเป็นแบบ class ครับ
การเรียกใช้ ถ้าอยู่ใน class เดียวกันก็  $this->GetBalance();

ลองศึกษาเพิ่มเรื่องการใช้งาน class function หรือ PHP OOP


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: m3030001 ที่ 16 สิงหาคม 2019, 11:57:16
ฟังก์ชั่นนี้เขาเขียนเป็นแบบ class ครับ
การเรียกใช้ ถ้าอยู่ใน class เดียวกันก็  $this->GetBalance();

ลองศึกษาเพิ่มเรื่องการใช้งาน class function หรือ PHP OOP

ตัวอย่างเป็นแบบนี้ครับ แต่มันไม่แสดง

$transactions = $tw->getTransaction(50); // Fetch last 50 transactions. (within the last 30 days)
foreach ($transactions["data"]["activities"] as $report) {
   // Fetch transaction details.
   print_r($tw->GetTransactionReport($report["report_id"]));
}


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: Nutikannn ที่ 23 กันยายน 2019, 14:02:13
ตามค่าา


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: wansongchai ที่ 23 กันยายน 2019, 14:06:47
รอๆๆ


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: wansongchai ที่ 03 ตุลาคม 2019, 15:19:01
รอผู้รู้ ตามครับ


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: weerayada ที่ 03 ตุลาคม 2019, 22:15:28
ตามด้วยค่ะ


หัวข้อ: Re: ฟังชั้น php แบบนี้เราเรียกใช้แบบใหนครับ true wallet
เริ่มหัวข้อโดย: weerayada ที่ 10 ตุลาคม 2019, 22:13:30
ขอบคุณค่ะ