PHP - Remove part of string? -


I have the string with the following structure:

  AAA-BBB-CCC or BBB I want to remove the part before these stars  

Results

  

Code> BBB-CCC CCC DDD

Can I do this without "Explosion"?

Thank you in advance!

You can use something like this:

  $ str =" AAA-BBB-CCC "; $ Str2 = Explosion ("-", $ str); Array_shift ($ str2); $ Str = implode ("-", $ str2);    

Comments