Procedural File: dpmbstring_enabled.php
SOURCE LOCATION: /lib/dpmbstring_enabled.php
File Overview
Maps dp_* to mb_* multibyte functions
Used when DPSERVER_ENABLE_MBSTRING is set to TRUE in dpserver-ini.php and the multibyte extension is enabled in PHP. DutchPIPE version 0.4; PHP version 5 LICENSE: This source file is subject to version 1.0 of the DutchPIPE license. If you did not receive a copy of the DutchPIPE license, you can obtain one at http://dutchpipe.org/license/1_0.txt or by sending a note to license@dutchpipe.org, in which case you will be mailed a copy immediately.
Functions
void dp_ereg(
$pattern , $string , [ $regs = NULL]
)
|
|
PARAMETERS:
|
|
$pattern: |
|
|
|
$string: |
|
|
|
$regs: |
|
void dp_eregi(
$pattern , $string , [ $regs = NULL]
)
|
|
PARAMETERS:
|
|
$pattern: |
|
|
|
$string: |
|
|
|
$regs: |
|
dp_eregi_replace [line 154]
void dp_eregi_replace(
$pattern , $replacement , $string , [ $option = NULL]
)
|
|
PARAMETERS:
|
|
$pattern: |
|
|
|
$replacement: |
|
|
|
$string: |
|
|
|
$option: |
|
dp_ereg_replace [line 148]
void dp_ereg_replace(
$pattern , $replacement , $string , [ $option = NULL]
)
|
|
PARAMETERS:
|
|
$pattern: |
|
|
|
$replacement: |
|
|
|
$string: |
|
|
|
$option: |
|
boolean dp_mail(
string $to , string $subject , string $message , string $addHeaders , string $addPara
)
|
|
Sends an email
PARAMETERS:
|
string |
$to: |
Receiver or receivers of the mail |
|
string |
$subject: |
Subject of the email to be sent |
|
string |
$message: |
Message to be sent |
|
string |
$addHeaders: |
Optional, inserted at end of email header |
|
string |
$addPara: |
Optional mail program parameters |
| RETURNS: | boolean | TRUE on success or FALSE on failure |
| SEE: | http://www.php.net/manual/en/function.mail.php, http://www.php.net/manual/en/function.mb-send-mail.php |
void dp_split(
$pattern , $string , [ $limit = NULL]
)
|
|
PARAMETERS:
|
|
$pattern: |
|
|
|
$string: |
|
|
|
$limit: |
|
integer dp_strlen(
string $string , [string $encoding = NULL]
)
|
|
Gets string length
PARAMETERS:
|
string |
$string: |
The string being measured for length |
|
string |
$encoding: |
Optional character encoding |
| RETURNS: | integer | length of the given string |
| SEE: | http://www.php.net/manual/en/function.strlen.php, http://www.php.net/manual/en/function.mb-strlen.php |
mixed dp_strpos(
string $haystack , string $needle , [string $offset = NULL] , [string $encoding = NULL]
)
|
|
Finds position of first occurrence of a string
PARAMETERS:
|
string |
$haystack: |
The string to search in |
|
string |
$needle: |
The string to search for |
|
string |
$offset: |
Optional search offset, default is 0 |
|
string |
$encoding: |
Optional character encoding |
| RETURNS: | mixed | Position as an integer, or FALSE if needle was not found |
| SEE: | http://www.php.net/manual/en/function.strpos.php, http://www.php.net/manual/en/function.mb-strpos.php |
mixed dp_strrpos(
string $haystack , string $needle , [string $offset = 0] , [string $encoding = NULL]
)
|
|
Finds position of last occurrence of a string
PARAMETERS:
|
string |
$haystack: |
The string to search in |
|
string |
$needle: |
The string to search for |
|
string |
$offset: |
Optional search offset, default is 0 |
|
string |
$encoding: |
Optional character encoding |
| RETURNS: | mixed | Position as an integer, or FALSE if needle was not found |
| SEE: | http://www.php.net/manual/en/function.strrpos.php, http://www.php.net/manual/en/function.mb-strrpos.php |
void dp_strtolower(
$string , [ $encoding = NULL]
)
|
|
PARAMETERS:
void dp_strtoupper(
$string , [ $encoding = NULL]
)
|
|
PARAMETERS:
string dp_substr(
string $string , string $start , [string $length = NULL] , [string $encoding = NULL]
)
|
|
Gets part of a string
PARAMETERS:
|
string |
$string: |
The input string |
|
string |
$start: |
Start position |
|
string |
$length: |
Optional length modifier |
|
string |
$encoding: |
Optional character encoding |
| RETURNS: | string | Extracted part of string |
| SEE: | http://www.php.net/manual/en/function.substr.php, http://www.php.net/manual/en/function.mb-substr.php |
dp_substr_count [line 128]
void dp_substr_count(
$haystack , $needle , [ $encoding = NULL]
)
|
|
PARAMETERS:
|
|
$haystack: |
|
|
|
$needle: |
|
|
|
$encoding: |
|
|
|