p0t4t0
420
2
Laravel

Is there a way to make the helper function str_random return only letters from a-z and not include numbers?

Posted 1 year ago by p0t4t0

Is there a way to make the helper function str_random return only letters from a-z and not include numbers? Right now the only solution I could think of is filtering the results to check if a number is in_array and call str_random again if it is, but it seems like a waste of resource, but i'm not sure, any thoughts?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.