Thursday, July 8, 2010

JAVASCRIPT EQUIVALENT FOR PHP FUNCTIONS

Found this from Kevin van Zonneveld site and I just feel to post it here. List of PHP Functions are below:

abs

acosh

acos

addslashes

array

array_change_key_case

array_chunk

array_combine

array_count_values

array_diff

array_diff_assoc

array_diff_key

array_fill

array_fill_keys

array_filter

array_flip

array_keys

array_key_exists

array_map

array_merge

array_merge_recursive

array_pad

array_pop

array_product

array_push

array_rand

array_reduce

array_reverse

array_search

array_shift

array_slice

array_sum

array_unique

array_unshift

array_values

array_walk

array_walk_recursive

asinh

asin

atanh

atan

base64_decode

base64_encode

basename

base_convert

bin2hex

bindec

call_user_func_array

ceil

checkdate

chop

chr

chunk_split

compact

constant

cosh

cos

count

count_chars

crc32

create_function

date

decbin

dechex

decoct

defined

define

deg2rad

dirname

echo

empty

end

explode

exp

filesize

file

file_exists

file_get_contents

floatval

floor

fmod

function_exists

getdate

getrandmax

get_class

get_headers

get_html_translation_table

get_included_files

hexdec

htmlentities

htmlspecialchars

htmlspecialchars_decode

html_entity_decode

http_build_query

hypot

implode

include

include_once

intval

in_array

ip2long

isset

is_array

is_bool

is_finite

is_infinite

is_int

is_nan

is_null

is_numeric

is_object

is_string

join

krsort

ksort

lcg_value

levenshtein

log10

log

long2ip

ltrim

max

md5

md5_file

microtime

min

mktime

mt_getrandmax

mt_rand

nl2br

number_format

octdec

ord

parse_str

pi

pow

preg_quote

printf

print_r

quotemeta

rad2deg

rand

range

require

require_once

reset

round

rsort

rtrim

serialize

setcookie

sha1

sha1_file

shuffle

sinh

sin

sizeof

sleep

sort

soundex

split

sprintf

sqrt

strcasecmp

strchr

strcmp

stripos

stripslashes

strip_tags

stristr

strlen

strnatcmp

strncasecmp

strpbrk

strpos

strrev

strripos

strrpos

strstr

strtolower

strtoupper

str_ireplace

str_pad

str_repeat

str_replace

str_rot13

str_split

substr

substr_count

tanh

tan

time

trim

ucfirst

ucwords

unserialize

urldecode

urlencode

utf8_decode

utf8_encode

var_export

wordwrap

No comments: