[memo] explode/split vs. implode/join

join 과 implode 는 완전히 같은 함수이지만,
split 는 regexp 사용이 가능한 explode 이다.
regexp 가 필요하지 않으면 explode 를 쓰는 것이 더 빠르다.

from. http://kr.php.net/split

작은 정보: preg_split(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to split(). If you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine.

끝.


nikon fm2 half

by 낭망백수 | 2006/08/01 15:51 | fr_code | 트랙백 | 덧글(0)

트랙백 주소 : http://mulriver.egloos.com/tb/2327841
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶