บทช่วยสอนPHP

PHP HOME แนะนำ PHP การติดตั้ง PHP PHP ไวยากรณ์ ความคิดเห็น PHP ตัวแปร PHP PHP Echo / พิมพ์ ประเภทข้อมูล PHP PHP Strings หมายเลข PHP PHP คณิตศาสตร์ ค่าคงที่ PHP ตัวดำเนินการ PHP PHP If...Else...Elseif PHP Switch PHP Loops ฟังก์ชัน PHP PHP Arrays PHP Superglobals PHP RegEx

แบบฟอร์มPHP

การจัดการแบบฟอร์ม PHP การตรวจสอบแบบฟอร์ม PHP ต้องใช้แบบฟอร์ม PHP URL แบบฟอร์ม PHP/อีเมล แบบฟอร์ม PHP เสร็จสมบูรณ์

PHPขั้นสูง

วันที่และเวลา PHP รวม PHP การจัดการไฟล์ PHP ไฟล์ PHP เปิด/อ่าน สร้าง/เขียนไฟล์ PHP อัพโหลดไฟล์ PHP คุกกี้ PHP PHP Sessions ตัวกรอง PHP ตัวกรอง PHP ขั้นสูง ฟังก์ชันเรียกกลับของ PHP PHP JSON ข้อยกเว้น PHP

PHP OOP

PHP OOP คืออะไร คลาส PHP/วัตถุ ตัวสร้าง PHP PHP Destructor PHP Access Modifiers PHP Inheritance ค่าคงที่ PHP PHP Abstract Classes อินเทอร์เฟซ PHP PHP ลักษณะ PHP Static Methods PHP คุณสมบัติคงที่ PHP เนมสเปซ PHP Iterables

ฐานข้อมูลMySQL

ฐานข้อมูล MySQL MySQL Connect MySQL สร้าง DB MySQL สร้างตาราง MySQL แทรกข้อมูล MySQL รับ ID ล่าสุด MySQL แทรกหลายรายการ MySQL ที่เตรียมไว้ MySQL Select Data MySQL Where MySQL สั่งซื้อโดย MySQL ลบข้อมูล ข้อมูลอัพเดต MySQL MySQL Limit Data

PHP XML

PHP XML Parsers PHP SimpleXML Parser PHP SimpleXML - รับ PHP XML Expat PHP XML DOM

PHP - AJAX

บทนำ AJAX AJAX PHP ฐานข้อมูล AJAX AJAX XML AJAX ค้นหาสด AJAX โพล

ตัวอย่างPHP

ตัวอย่าง PHP PHP คอมไพเลอร์ แบบทดสอบ PHP แบบฝึกหัด PHP ใบรับรอง PHP

ข้อมูลอ้างอิงPHP

ภาพรวม PHP PHP Array ปฏิทิน PHP PHP วันที่ ไดเรกทอรี PHP ข้อผิดพลาด PHP ข้อยกเว้น PHP ระบบไฟล์ PHP ตัวกรอง PHP PHP FTP PHP JSON คีย์เวิร์ด PHP PHP Libxml PHP Mail PHP คณิตศาสตร์ PHP เบ็ดเตล็ด PHP MySQLi เครือข่าย PHP การควบคุมเอาต์พุต PHP PHP RegEx PHP SimpleXML PHP Stream PHP String การจัดการตัวแปร PHP PHP XML Parser PHP Zip เขตเวลา PHP

PHP เบ็ดเตล็ด ฟังก์ชั่น


PHP บทนำเบ็ดเตล็ด

เบ็ดเตล็ด ฟังก์ชั่นถูกวางไว้ที่นี่เท่านั้นเพราะไม่มีหมวดหมู่อื่นใดที่ดูเหมือนจะเหมาะสม


การติดตั้ง

เบ็ดเตล็ด ฟังก์ชั่นเป็นส่วนหนึ่งของแกน PHP ไม่จำเป็นต้องติดตั้งเพื่อใช้ฟังก์ชันเหล่านี้


การกำหนดค่ารันไทม์

พฤติการณ์ต่างๆ นานา ฟังก์ชันได้รับผลกระทบจากการตั้งค่าในไฟล์ php.ini

อื่น ๆ. ตัวเลือกการกำหนดค่า:

Name Description Default Changeable
ignore_user_abort FALSE indicates that scripts will be terminated as soon as they try to output something after a client has aborted their connection "0" PHP_INI_ALL
highlight.string Color for highlighting a string in PHP syntax "#DD0000" PHP_INI_ALL
highlight.comment Color for highlighting PHP comments "#FF8000" PHP_INI_ALL
highlight.keyword Color for syntax highlighting PHP keywords (e.g. parenthesis and semicolon) "#007700" PHP_INI_ALL
highlight.default Default color for PHP syntax "#0000BB" PHP_INI_ALL
highlight.html Color for HTML code "#000000" PHP_INI_ALL
browscap Name and location of browser-capabilities file (e.g. browscap.ini) NULL PHP_INI_SYSTEM


PHP ฟังก์ชันเบ็ดเตล็ด

Function Description
connection_aborted() Checks whether the client has disconnected
connection_status() Returns the current connection status
connection_timeout() Deprecated from PHP 4.0.5. Checks whether the script has timed out
constant() Returns the value of a constant
define() Defines a constant
defined() Checks whether a constant exists
die() Alias of exit()
eval() Evaluates a string as PHP code
exit() Prints a message and exits the current script
get_browser() Returns the capabilities of the user's browser
__halt_compiler() Halts the compiler execution
highlight_file() Outputs a file with the PHP syntax highlighted
highlight_string() Outputs a string with the PHP syntax highlighted
hrtime() Returns the system's high resolution time
ignore_user_abort() Sets whether a remote client can abort the running of a script
pack() Packs data into a binary string
php_strip_whitespace() Returns the source code of a file with PHP comments and whitespace removed
show_source() Alias of highlight_file()
sleep() Delays code execution for a number of seconds
sys_getloadavg() Returns the system load average
time_nanosleep() Delays code execution for a number of seconds and nanoseconds
time_sleep_until() Makes a script sleep until the specified time
uniqid() Generates a unique ID
unpack() Unpacks data from a binary string
usleep() Delays code execution for a number of microseconds

PHP ที่กำหนดไว้ล่วงหน้าเบ็ดเตล็ด ค่าคงที่

Constant Description
CONNECTION_ABORTED Connection is aborted by user or network error
CONNECTION_NORMAL Connection is running normally
CONNECTION_TIMEOUT Connection timed out
__COMPILER_HALT_OFFSET__