Tagged: PHP

PHP Tips : How PHP Function Return Mualtiple values

PHP Tips : How PHP Function Return Mualtiple values โดยปกติการเขียนฟังก์ชันทั่วๆไป ฟังก์ชันจะสามารถ return ค่าออกมาได้ 1 ค่า แต่ทว่าหากเราต้องการจะเอาฟังก์ชันไปคำนวน แล้วตอบกลับค่าให้ได้มากกว่า 1 ค่า เราทำได้ดังนี้ครับ หลักการ เราสามารถใช้ return array ( value1, value2, …) แทนได้ครับ ดังตัวอย่าง สร้างฟังก์ชันคำนวนตัวเลข แล้วตอบกลับค่าผลรวม พร้อมกับบอกว่ามีค่า “สูง”...

What is PHP? How to Choose a PHP Code Generator

What is PHP? How to Choose a PHP Code Generator What is PHP?PHP (PHP: Hypertext Processor) is a scripting language used by programmers and was created in 1995, by Rasmus Lerdorf. The original purpose...

Debug XML Documents

How to find out where is the problem with your XML document? 1. Fastest solution – isolate the problem: 2. Slowest solution: 3. Use the online tool XML debugger: I’ve just developed to help...

Introduction to Web Services With PHP

Note that both Google’s service and PEAR::SOAP are technically still in beta, so you might encounter the odd bug from time to time. There are other SOAP client libraries available, including the PHP5 SOAP...