str_repeat - 문자열 반복

· 2017-06-01 (목) 17:30:22 · 2189

str_repeat - 문자열 반복

 

설명 ¶

 

string str_repeat ( string $input , int $multiplier )

input반복되는 multiplier시간을 반환합니다 .

 

매개 변수 ¶

 

input

반복 할 문자열입니다.

 

multiplier

시간의 번호 input문자열을 반복해야합니다.

 

multiplier가 0보다 크거나 같아야합니다. multiplier이 값을 0으로 설정하면 함수는 빈 문자열을 반환합니다.

 

반환 값 ¶

 

반복 한 캐릭터 라인을 돌려줍니다.

 

예 ¶

 

Example # 1 str_repeat () 예제

 

<?php

echo str_repeat("-=", 10);

?>

위의 예제는 다음과 같이 출력됩니다 :

 

- = - = - = - = - = - = - = - = - = - =

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 17-08-27 조회 2,068
jQuery 17-08-27 조회 2,199
jQuery 17-08-25 조회 2,052
jQuery 17-08-25 조회 2,083
jQuery 17-08-25 조회 2,286
jQuery 17-08-24 조회 1,805
jQuery 17-08-24 조회 2,584
jQuery 17-08-24 조회 2,025
jQuery 17-08-23 조회 2,240
jQuery 17-08-23 조회 2,258
jQuery 17-08-23 조회 2,483
jQuery 17-08-22 조회 2,423
jQuery 17-08-22 조회 1,919
jQuery
[jQuery]
17-08-22 조회 2,397
PHP 17-08-21 조회 7,410
jQuery 17-08-20 조회 3,048
jQuery 17-08-20 조회 2,064
jQuery 17-08-20 조회 2,130
jQuery 17-08-18 조회 2,267
jQuery 17-08-18 조회 1,746
jQuery 17-08-18 조회 2,354
jQuery 17-08-17 조회 2,106
jQuery 17-08-17 조회 2,311
jQuery 17-08-17 조회 2,434
jQuery 17-08-16 조회 2,042
jQuery 17-08-16 조회 2,055
jQuery 17-08-16 조회 2,020
jQuery 17-08-15 조회 1,706
jQuery 17-08-15 조회 1,872
jQuery 17-08-15 조회 1,885