(→같이 보기) |
Jmnote bot (토론 | 기여) 잔글 (봇: 자동으로 텍스트 교체 (-source +syntaxhighlight)) |
||
1번째 줄: | 1번째 줄: | ||
==개요== | ==개요== | ||
;PHP urlencode() | ;PHP urlencode() | ||
< | <syntaxhighlight lang='PHP'> | ||
echo urlencode('개요'); | echo urlencode('개요'); | ||
# %EA%B0%9C%EC%9A%94 | # %EA%B0%9C%EC%9A%94 | ||
echo urlencode('hello 123 http://zetawiki.com 한글'); | echo urlencode('hello 123 http://zetawiki.com 한글'); | ||
# hello+123+http%3A%2F%2Fzetawiki.com+%ED%95%9C%EA%B8%80 | # hello+123+http%3A%2F%2Fzetawiki.com+%ED%95%9C%EA%B8%80 | ||
</ | </syntaxhighlight> | ||
==같이 보기== | ==같이 보기== |
2020년 11월 2일 (월) 02:35 판
1 개요
- PHP urlencode()
PHP
Copy
echo urlencode('개요');
# %EA%B0%9C%EC%9A%94
echo urlencode('hello 123 http://zetawiki.com 한글');
# hello+123+http%3A%2F%2Fzetawiki.com+%ED%95%9C%EA%B8%80
2 같이 보기
- PHP urldecode() - URL-인코딩된 문자열을 디코딩
- PHP htmlentities() - 적용가능한 문자들을 HTML 엔티티로 변환
- PHP rawurlencode() - RFC 3986에 따른 URL 인코딩
- PHP rawurldecode() - URL-인코딩된 문자열을 디코딩
- 함수 urlencode()
3 참고
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.