Example: $str="The mice jumped over the cat, giggling madly as the moon exploded into green ";
$chunksize=8;
$chunkedarr=str_split($str,$chunksize); print_r($chunkedarr); // Every array show 8 character.
Metaphone() function // same as ternary operator.
Example: echo metaphone(“rset”) == metaphone(“reset”) ? “String are Similar” : “String are not Similar”; parse_url() function // separated url scheme, host, port, path, query.
Example: $url = "http://www.melonfire.com:80/community/columns/trog/article.php?id=79 &page=2";
$data = parse_url($url); foreach ($data as $k=>$v) { echo "$k: $v \n"; } preg_split() function // Count words str_word_count() // String word count
@ereg() ; eregi() and preg_match() ; preg_match_all() //regular expression function echo substr_count($, hee) // Count hee str_replace(“Firoz”, “masfiroz”, $) // Replace Firoz to masfiroz in string.
Crypt($,$) // One-way string hashing
Math Functions * abs — Absolute value * acos — Arc cosine * acosh — Inverse hyperbolic cosine * asin — Arc sine * asinh — Inverse hyperbolic sine * atan2 — Arc tangent of two variables * atan — Arc tangent * atanh — Inverse hyperbolic tangent * base_convert — Convert a number between arbitrary bases * bindec — Binary to decimal * ceil — Round fractions up * cos — Cosine * cosh — Hyperbolic cosine * decbin — Decimal to binary * dechex — Decimal to hexadecimal * decoct — Decimal to octal * deg2rad — Converts the number in degrees to the radian equivalent * exp — Calculates the exponent of e * expm1 — Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero * floor — Round fractions down * fmod — Returns the floating point remainder (modulo) of the division of the arguments * getrandmax — Show largest possible random value * hexdec — Hexadecimal to decimal * hypot —