현재 위치: > 함수 카테고리 모음> str_repeat

str_repeat

문자열을 반복하십시오
이름:str_repeat
분류:
사용 언어:php
한 줄 설명:지정된 횟수로 문자열을 반복하십시오.

문자열 "상하이"를 5 번 반복하십시오.

 <span class="token php language-php"><span class="token delimiter important"><? php</span>
<span class="token keyword">echo</span> <span class="token function">str_repeat</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"상하이"</span> <span class="token punctuation">,</span> <span class="token number">5</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

직접 시도하십시오

유사한 함수
  • C 스타일의 BackSlashes를 사용하여 문자열로 문자를 탈출 addcslashes

    addcslashes

    C스타일의BackSlashes를사용하
  • 8 비트 문자열을 따옴표로 인쇄 가능한 문자열로 변환 quoted_printable_encode

    quoted_printable_encode

    8비트문자열을따옴표로인쇄가능한문자열로
  • 지정된 수의 문자열로 문자열을 나눕니다 wordwrap

    wordwrap

    지정된수의문자열로문자열을나눕니다
  • "자연 순서"알고리즘을 사용한 문자열 비교 strnatcmp

    strnatcmp

    "자연순서"알고리즘
  • 문자열에서 ROT13 변환을 수행하십시오 str_rot13

    str_rot13

    문자열에서ROT13변환을수행하십시오
  • 문자열의 Soundex 키를 계산하십시오 soundex

    soundex

    문자열의Soundex키를계산하십시오
  • 문자열이 주어진 부분 문자열로 끝 있는지 확인하십시오 str_ends_with

    str_ends_with

    문자열이주어진부분문자열로끝있는지확인하
  • addcslashes ()를 사용하여 탈출 한 문자열이 반영됩니다. stripcslashes

    stripcslashes

    addcslashes()를사용하여탈출
인기 기사