| 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)  |