Notice
Recent Posts
Recent Comments
Link
목록str_replace (1)
고양이 여름이의 지식채널

PHP가 지원하는 문자열 처리 함수들을 알아보겠습니다. explode 문자열을 주어진 문자열 기준으로 배열로 분리합니다. explode (string separator, string str, int limit); 실행결과. Array { [0] => 바나나 [1] => 사과 [2] => 수박 [3] => 파인애플 } str_replace 문자열에서 특정 문자열을 찾아 치환하는 함수입니다. str_replace (mixed search, mixed replace, mixed subject, int &count); 실행결과 고양이는 매우 귀엽다! 실행결과 우리집 고양이는 매우 귀여워요! strpos 문자열에서 특정 문자열의 위치를 찾으려고 사용하는 함수입니다. strpos (string haystack, s..
Programming/PHP
2021. 1. 27. 00:10