PHP string str_repeat() FunctionThe str_repeat() is predefine function of PHP. It is used to repeat a string a specified number times. It returns input repeated multiple times. Syntax:
Example 1Output: Before using 'str_repeat()' function: ('.',13) After using 'str_repeat()' function:.............. Example 2Output: Before using 'str_repeat()' function: ('-=',10) After using 'str_repeat()' function:-=-=-=-=-=-=-=-=-=-= Example 3Output: Before using 'str_repeat()' function: (' ??,10) After using 'str_repeat()' function: ? ? ? ? ? ? ? ? ? ?; Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India