RSS구독하기:SUBSCRIBE TO RSS FEED
즐겨찾기추가:ADD FAVORITE
글쓰기:POST
관리자:ADMINISTRATOR
출처 블로그 > Nothing...
원본 http://blog.naver.com/theblueweb/110004684145

javascript

php

typeof(string1)=="string"

string1의 타입값 확인

is_string(string1);

string1.length

문자열의 길이를 반환

strlen(string1);

String.fromCharCode(fromNum)
fromChar.charCodeAt(0)

chr(fromNum);
ord(fromChar);

string1.toLowerCase() 모두 소문자로
string1.toUpperCase() 모두 대문자로

strtolower(string1);
strtoupper(string1);

string1.indexOf( string2, fromNum )

strpos( string1, string2, fromNum );

string1.charAt(number)

substr(string1, number, 1);

string1.lastIndexOf( string2, fromNum )

function strposr($string='', $search='', $case=0){
if(!$case){$string=strtolower($string); $search=strtolower($search);};
return ( strpos($string, $search)===false )?false:
strlen($string) - strlen($search) - (strpos( strrev($string), strrev($search)));
}

string1.substring( fromNum, toNum )

substr( string1, fromNum, (toNum-fromNum) );

string1.substr( fromNum, length )

substr( string1, fromNum, length);

string1.substr(fromNum, length)
string1.substring( fromNum, (fromNum+length) )

substr( string1, fromNum, length );

string1.substring( string1.indexOf(string2) )

strstr( string1, string2 );

string1.split(stringSplitter)

explode(stringSplitter, string1);

string1.replace( findThis, replaceWithThis )

str_replace( findThis, replaceWithThis, string1 );

string1.replace( regularExpression, replaceWithThis )

preg_replace( regularExpression, replaceWithThis, string1 );

string1.replace( string1.substring( fromNumIndex, (fromNumIndex+length) ), replaceWithThis )

substr_replace( string1, replaceWithThis, fromNumIndex, length );

string1=string1.replace(/<[^>]*>/g, '');

string1=striptags(string1);

string1.replace( findThis, replaceWithThis )

str_replace( findThis, replaceWithThis, string1 );

string1.replace( regularExpression, replaceWithThis )

preg_replace( regularExpression, replaceWithThis, string1 );

string1.replace( string1.substring( fromNumIndex, (fromNumIndex+length) ), replaceWithThis )

substr_replace( string1, replaceWithThis, fromNumIndex, length );

typeof(array1)=="object"

is_array(array1)

array1.length 배열의 갯수 세기

sizeof(array1);

count(array1);

array1.join(stringJoiner)

implode(stringJoiner, string1);

array1.concat(array2, array3...)

배열의 병합

array_merge(array1, array2, array3...);
array_merge_recursive(array1, array2, array3...);

shift()

array_shift(array1);

unshift()

array_unshift(array1);

pop()

array_pop(array1);

push() 배열끝에 원소를 추가

array_push(array, mixed[,mixed...]);

array1.reverse() 배열의 역순

array_reverse(array1);

array1.slice(startIndex, endIndex)

array_slice( array1, startIndex, (endIndex-startIndex) );

array1.splice(startIndex, length)

array_splice( array1, startIndex, length );

array1.slice(startIndex, (startIndex+length))

array_slice( array1, startIndex, length );

array1.splice(startIndex, length, [item...])

startIndex 다음번 length 만큼 삭제 후 item을 삽입

array_splice( array1, startIndex, length );

array1.sort

sort(array1);

isNaN(number)

is_nan(number);
is_numeric(number);
is_integer(number);
is_double(number);

parseInt(string, [radix])

string을 radix에 해당하는 진수값으로 변환

(integer)string;

parseFloat(string)

(double)string;

Math.max(number1, number2)

max(number1, number2);

Math.min(number1, number2)

min(number1, number2);

(Math.random()*(max-min))+min

mt_rand(min, max);

Math.round(
(Math.random()*(max-min))+min
)

mt_srand((double)microtime()*1000000)

Math.pow(number, power)

pow(number, power);

Math.sqrt(number)

sqrt(number);

Math.sin();

sin();

Math.cos();

cos();

Math.tan();

tan();

Math.asin();

asin();

Math.acos();

acos();

Math.atan();

atan();

Math.PI;

pi();

Math.log(value)

log(value);

typeof(functionName)=="function";

function_exists("functionName");

functionName.arguments.length;

func_num_args();

functionName.arguments;

func_get_args();

functionName.arguments[Number];

func_get_arg(Number)


[원문] http://www.idsu.net/bbs/view.php?wuser_id=study&category_no=&u_no=55&pg=1&sn=&shs=&shn=&shm

2006/09/08 16:01 2006/09/08 16:01
이 글에는 트랙백을 보낼 수 없습니다
웅쓰:웅자의 상상플러스
웅자의 상상플러스
전체 (379)
게임 (5)
영화 (2)
기타 (23)
맛집 (5)
영어 (2)
대수학 (3)
형태소 (5)
Hacking (9)
Linux (112)
HTML (48)
Application_developing (48)
Web_developing (102)
Window (11)
«   2024/11   »
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
  1. 2016/01 (1)
  2. 2015/12 (3)
  3. 2015/10 (3)
  4. 2015/03 (2)
  5. 2015/01 (4)