Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites
string escapeshellcmd(string command) The escapeshellcmd function adds a backslash before any characters that may cause trouble ...
^ Caret ( Left Parenthesis ) Right Parenthesis [ Left Square Bracket ] Right Square Bracket { Left Curly Brace } Right Curly Bra ...
?> string htmlspecialchars(string text) The htmlspecialchars function works like htmlentities, except that a smaller set of e ...
curren iuml para yacute deg iuml plusmn yen divide laquo pound yuml string long2ip(integer address) Use long2ip to get the textu ...
Figure 9-8. number_format. integer ord(string character) The ord function returns the ASCII code of the first character in the c ...
for($i=0; $i < strlen($text); $i++) { print(""); print(""); if(ord($text[$i]) > 31) { print($text[$i]); } else { print("(u ...
for($i=0; $istrlen($packedData); $i++) { print("0x". dechex(ord($packedData[$i])). " "); } print("\n"); //unpack the data $Data ...
n Integer The argument is saved as an unsigned short, which is 2 bytes. The value is saved in a way that allows for safe unpacki ...
string quoted_printable_decode(string text) The quoted_printable_decode function converts a quoted string into 8-bit binary form ...
$ Dollar Sign This function performs the same function as imap_qprint but does not require the IMAP extension. <? $command = ...
The rawurldecode function returns the url_text string translated from url format into plain text. It reverses the action of rawu ...
...
string sql_regcase(string regular_expression) The sql_regcase function translates a case-sensitive regular expression into a cas ...
?> string stripcslashes(string text) The stripcslashes function complements addcslashes. It removes backslash codes that conf ...
string strtolower(string text) The strtolower function returns the text argument with all letters changed to lowercase. Other ch ...
$translated = ".?"; // turn sincerity into sarcasm print(strtr($text, $original, $translated)); ?> string substr_replace(stri ...
string ucfirst(string text) Use the ucfirst function to capitalize the first character of a string. Compare this function to str ...
print(urldecode("mail%20leon%40clearink.com")); ?> string urlencode(string url_text) The urlencode function returns the url_t ...
that time, the password is asked for, encrypted, and compared to the previously encrypted password. Depending on your operating ...
The mcrypt_cbc function encrypts a string using cipher block chaining. This method is best suited to encrypting whole files. The ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf