How to select all characters to the right of a specific character in a string - PHP -


i spent long time trying figure out! how select characters right of specific character in string when don't know how many characters there be?

you can do:

$str = 'some_long_string'; echo explode( '_', $str, 2)[1]; // long_string 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -