explode -> 구분자를 지정한 뒤, 구분자를 이용해 배열화 한다.
<?
$str="n34n45";
$data=explode("n",$str);
?>
$data[1]=34이고, $data[2]는 45가 된다.
trim -> 공백을 아스키에서 본래 문자로 변형한다.
" " (ASCII 32 (0x20)), an ordinary space.
"t" (ASCII 9 (0x09)), a tab.
"n" (ASCII 10 (0x0A)), a new line (line feed).
"r" (ASCII 13 (0x0D)), a carriage return.
" " (ASCII 0 (0x00)), the NUL-byte.
"x0B" (ASCII 11 (0x0B)), a vertical tab.
<?
$str="n34n45";
$data=explode("n",$str);
?>
$data[1]=34이고, $data[2]는 45가 된다.
trim -> 공백을 아스키에서 본래 문자로 변형한다.
" " (ASCII 32 (0x20)), an ordinary space.
"t" (ASCII 9 (0x09)), a tab.
"n" (ASCII 10 (0x0A)), a new line (line feed).
"r" (ASCII 13 (0x0D)), a carriage return.
" " (ASCII 0 (0x00)), the NUL-byte.
"x0B" (ASCII 11 (0x0B)), a vertical tab.
댓글 달기