1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Developer''''s Dictionary- P114 ppsx

5 184 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 5
Dung lượng 361,78 KB

Nội dung

PHP Developer’s Dictionary IT-SC book 565 Description The preg_replace() function searches string for matches of pattern , and replaces them with replacement . The optional limit parameter can limit the number of matches you want to make. preg_split() Syntax array preg_split(string pattern, mixed string [, int limit [, int flag]]) Description The preg_split() function returns an array of substrings or string that have been split by pattern and stored into individual array entries. The optional limit parameter can limit the number of matches you want to make. If the optional flag —which can only be PREG_SPLIT_NO_EMPTY —is passed, only non-empty pieces are returned. preg_quote() Syntax string preg_quote(mixed string [, string delimiter]) Description The preg_quote() function escapes any special characters in the string provided. A delimiter will also be escaped if it is provided. These can be any of the following: • } • + • * • ? • [ • ^ • ] • $ • ( • ) • { • } • = • ! • < • > • | • : PHP Developer’s Dictionary IT-SC book 566 preg_grep() Syntax array preg_grep(string pattern , array input ) Description The preg_grep() function, which was added in PHP 4, returns an array of elements from the input array that match the pattern specified. PHP Developer’s Dictionary IT-SC book 567 Chapter 12. PHP Compilation Options This chapter describes the options that are available to the user when compiling PHP on a UNIX platform. These options enable and disable certain functionality and add external libraries to the core PHP binary. These options are made available to PHP through the configuration process prior to compilation. For instance, a configuration line might be ./configure with-apache=/usr/lib/apache with-pgsql=shared This chapter describes the syntax and parameters around each of these compile-time options. These options are divided into two separate groups: the enable , disable , and help group and the with group. Enable, Disable, and Help This group of options enables and disables functionality within PHP. These options are not set by using on or off parameters, but rather they are turned on or off based solely on the command. This group also includes an official description of the help command. disable-short-tags Syntax disable-short-tags Description This option disables PHP's capability to use the abbreviated scripting tags. The short tags look like this: <? ?> . If you disable this option, the only PHP script tag that will be recognized is the <?PHP ?> tag. Short tags must be disabled for PHP to work with XML. disable-syntax-hl Syntax disable-syntax-hl Description PHP Developer’s Dictionary IT-SC book 568 This option turns off syntax highlighting. disable-unified-odbc Syntax disable-unified-odbc Description This option disables the Unified ODBC module. The Unified ODBC module provides a common interface to ODBC. This option is necessary only if you are using one of the following options: with-iodbc , with-solid , with-ibm-db2 , with-adabas , with-velocis , or with-custom-odbc . enable-bcmath Syntax enable-bcmath Description This option enables the bc math functions in PHP. The bc math functions provide access to arbitrary-precision math functions. Chapter 5, "PHP Language Extensions," describes these functions in detail. enable-c9x-inline Syntax enable-c9x-inline Description This option enables support for the C9x compiler standard. The PHP support site recommends that you enable this option if you encounter undefined references to i_zend_is_true and other symbols. enable-debug PHP Developer’s Dictionary IT-SC book 569 Syntax enable-debug Description This option enables extra debugging information. This makes it possible to gather more detailed information when there are problems with PHP. (Note that this doesn't have anything to do with debugging facilities or information available to PHP scripts.) enable-debugger Syntax enable-debugger Description This option enables the internal PHP debugger. At the time of this writing, the internal debugger was still under development. enable-discard-path Syntax enable-discard-path Description This option allows the PHP CGI binary to run in a directory other than the normal cgi- bin directory. When this option is used, people will not be able to get around the .htaccess security. enable-force-cgi-redirect Syntax enable-force-cgi-redirect . pattern specified. PHP Developer’s Dictionary IT-SC book 567 Chapter 12. PHP Compilation Options This chapter describes the options that are available to the user when compiling PHP on a UNIX. be recognized is the < ?PHP ?> tag. Short tags must be disabled for PHP to work with XML. disable-syntax-hl Syntax disable-syntax-hl Description PHP Developer’s Dictionary. and disable certain functionality and add external libraries to the core PHP binary. These options are made available to PHP through the configuration process prior to compilation. For instance,

Ngày đăng: 07/07/2014, 05:20

TỪ KHÓA LIÊN QUAN