Jump to content
  • 0

Remove colour codes from a string in PHP


Feche1320

Question

Posted

For example, I have this string:

#33ff22Hello #8844aaworld#412548! 

And I want it without the colour codes.

On lua I can use gsub, but on PHP how can I do it?

Thanks

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...