Jump to content

[SOLVED] generate string of length 'n' from a character


ankitmcgill

Recommended Posts

Hello everyone,

 

I have just started coding in php and i have a n00b question.

 

is there a php function to generate lets say a string of length n with all characters being "*".

 

i know i can do this using a loop .. just wondering if there is a better way to do it.

 

thank you,

ankit

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.