티스토리 뷰
728x90
implode ( string $separator , array $array ) : string
explode ( string $separator , string $string , int $limit = PHP_INT_MAX ) : array
https://www.php.net/manual/en/function.implode.php
PHP: implode - Manual
It's not obvious from the samples, if/how associative arrays are handled. The "implode" function acts on the array "values", disregarding any keys: 'four', 'five', '3rd' => 'six' );echo implode( ',', $a ),'/', implode( ',', $b );?>outputs:one,two,three/fou
www.php.net
https://www.php.net/manual/en/function.explode.php
PHP: explode - Manual
function aexplode($delimiters,$string,$trimduplicate = false) { if (!is_array($delimiters)) return explode($delimiters,$string); $stringaux = str_replace($delimiters, $delimiters[0], $string); if ($trimduplicate) while
www.php.net
728x90
'공부' 카테고리의 다른 글
[Python] datetime, timestamp (0) | 2021.01.14 |
---|---|
[Java] URLEncode (0) | 2021.01.14 |
[PHP] join -> implode; split -> explode (0) | 2021.01.14 |
[PHP] str_replace("a", "b" "abc") -> "bbc" (0) | 2021.01.14 |
[Python] typeof -> `isinstance(s, str)` (0) | 2021.01.14 |
[Python] url to image (0) | 2021.01.14 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- 142,048
- Today
- 28
- Yesterday
- 221
TAG
- follower
- 김달
- 유투브
- Bot
- wlw
- 인스타그램
- 책그림
- 메디파크 내과 전문의 의학박사 김영수
- 어떻게 능력을 보여줄 것인가?
- 팔로워 수 세기
- Kluge
- 개리마커스
- 연애학개론
- COUNT
- 클루지