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
Post a Comment