필드 내 특정문자를 다른문자열로 변환 정보
필드 내 특정문자를 다른문자열로 변환
본문
필드 내 특정문자를, 출력시에는 다른문자로 출력되게 하고싶은데요.
참고할만한 자료만있어도됩니다.
참고할만한 자료만있어도됩니다.
댓글 전체
$data ="쌀라쌀라특정문자"
$str = "특정문자";
$str2 = "변환될문자";
$result = str_replace($str,$str2,$data);
echo $result;
출력결과
=>쌀라쌀라변환될문자
$str = "특정문자";
$str2 = "변환될문자";
$result = str_replace($str,$str2,$data);
echo $result;
출력결과
=>쌀라쌀라변환될문자
$data에 ; 빠졌네요~~~