PHP موسوعات فونکشن

PHP Miscellaneous Functions Introduction

We classify functions that do not belong to other categories on this page.

Installation

Miscellaneous functions are part of the core of PHP. These functions can be used without installation.

Runtime Configuration

The behavior of the miscellaneous functions is affected by the settings in php.ini.

Miscellaneous function configuration options:

Name Default توضیح Changeable
ignore_user_abort "0" FALSE indicates that the script will be terminated if the script tries to output after the client terminates the connection. PHP_INI_ALL
highlight.string "#DD0000" Color used for highlighting strings that conform to PHP syntax. PHP_INI_ALL
highlight.comment "#FF8000" Color used for highlighting PHP comments. PHP_INI_ALL
highlight.keyword "#007700" Color used for highlighting PHP keywords (e.g., parentheses and semicolons). PHP_INI_ALL
highlight.bg "#FFFFFF" Background color. PHP_INI_ALL
highlight.default "#0000BB" Default color of PHP syntax. PHP_INI_ALL
highlight.html "#000000" HTML code color. PHP_INI_ALL
browscap NULL The name and location of the browser performance file (e.g., browscap.ini). PHP_INI_SYSTEM

PHP موسوعات فونکشن

PHP:Indicate the earliest PHP version that supports this function.

Function توضیح PHP
connection_aborted() Check if the client has disconnected. 3
connection_status() Return the current connection status. 3
connection_timeout() Not recommended for use in PHP 4.0.5. 3
constant() Return the value of a constant. 4
define() Define a constant. 3
defined() Check if a constant exists. 3
die() پیامی را نمایش می‌دهد و از اسکریپت خروج می‌کند. 3
eval() رشته را به حساب می‌آورد مانند PHP کد. 3
exit() پیامی را نمایش می‌دهد و از اسکریپت خروج می‌کند. 3
get_browser() کارایی مرورگر کاربر را بازمی‌گرداند. 3
highlight_file() فایل را با استفاده از زبان‌های برنامه‌نویسی نمایش می‌دهد. 4
highlight_string() رشته را با استفاده از زبان‌های برنامه‌نویسی نمایش می‌دهد. 4
ignore_user_abort() تنظیم اینکه آیا قطع اتصال مشتری باعث توقف اجرای اسکریپت می‌شود یا خیر. 3
pack() داده‌ها را به یک رشته دودویی می‌اندازد. 3
php_check_syntax() در PHP 5.0.5 منسوخ شده است. 5
php_strip_whitespace() فایل منبعی که شامل PHP کامنت‌های حذف شده و کاراکترهای خالی است را بازمی‌گرداند. 5
show_source() نام دیگر highlight_file() 4
sleep() اجرای کد به تأخیر اندکی می‌اندازد. 3
time_nanosleep() اجرای کد به تأخیر اندکی و نانو ثانیه می‌اندازد. 5
time_sleep_until() اجرای کد به تأخیر اندکی می‌اندازد. 5
uniqid() ID منحصر به فرد تولید می‌کند. 3
unpack() داده‌ها را از رشته دودویی بازپک می‌کند. 3
usleep() اجرای کد به تأخیر اندکی می‌اندازد. 3

مستقرار Date / Time PHP

PHP:مستقرار اولین نسخه PHP که پشتیبانی از آن را دارد.

مستقرار توضیح PHP
CONNECTION_ABORTED    
CONNECTION_NORMAL    
CONNECTION_TIMEOUT    
__COMPILER_HALT_OFFSET__   5