(PHP 4, PHP 5) echo — Output one or more strings Description void echo ( string $arg1 [, string $...] ) Outputs all parameters. echo() is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo() (unlike some other language constructs) does not behave like [...]
Category Archive for 'Training and Tutorials'
crypt (PHP 4, PHP 5) crypt — One-way string encryption (hashing) Description string crypt ( string $str [, string $salt] ) crypt() will return an encrypted string using the standard Unix DES-based encryption algorithm or alternative algorithms that may be available on the system. Some operating systems support more than one type of encryption. In [...]
chunk_split
Posted in php on Jun 2nd, 2007
chunk_split (PHP 4, PHP 5) chunk_split — Split a string into smaller chunks Description string chunk_split ( string $body [, int $chunklen [, string $end]] ) Can be used to split a string into smaller chunks which is useful for e.g. converting base64_encode() output to match RFC 2045 semantics. It inserts end every chunklen characters. [...]
chr (PHP 4, PHP 5) chr — Return a specific character Description string chr ( int $ascii ) Returns a one-character string containing the character specified by ascii. This function complements ord(). Parameters ascii The ascii code. Return Values Returns the specified character. Examples Example 2369. chr() example <?php $str = “The string ends in escape: “; [...]
bin2hex (PHP 4, PHP 5) bin2hex — Convert binary data into hexadecimal representation Description string bin2hex ( string $str ) Returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte-wise with the high-nibble first. Parameters str A character. Return Values Returns the hexadecimal representation of the given string.
addslashes
Posted in php on May 23rd, 2007
addslashes (PHP 4, PHP 5) addslashes — Quote string with slashes Description string addslashes ( string $str ) Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote (‘), double quote (“), backslash (\) and NUL (the NULL byte). An example use of [...]
count_chars
Posted in php on May 20th, 2007
count_chars (PHP 4, PHP 5) count_chars — Return information about characters used in a string Description mixed count_chars ( string $string [, int $mode] ) Counts the number of occurrences of every byte-value (0..255) in string and returns it in various ways. Parameters string The examined string. mode The optional parameter mode defaults to 0. [...]
addcslashes
Posted in php on May 20th, 2007
addcslashes (PHP 4, PHP 5) addcslashes — Quote string with slashes in a C style Description string addcslashes ( string $str, string $charlist ) Returns a string with backslashes before characters that are listed in charlist parameter. Parameters str The string to be escaped. charlist A list of characters to be escaped. If [...]
convert_uuencode
Posted in php on May 17th, 2007
convert_uuencode (PHP 5) convert_uuencode — Uuencode a string Description string convert_uuencode ( string $data ) convert_uuencode() encodes a string using the uuencode algorithm. Uuencode translates all strings (including binary’s ones) into printable characters, making them safe for network transmissions. Uuencoded data is about 35% larger than the original. Parameters data The data to be encoded. [...]
Variables Video Tutorial
Posted in php on May 16th, 2007
A variable is a means of storing a value, such as text string “Hello World!” or the integer value 4. A variable can then be reused throughout your code, instead of having to type out the actual value over and over again. In PHP you define a variable with the following form: * $variable_name = [...]