Hello,
I need to trim all characters after a specific character in a string in PHP. I want to take a string and remove all characters that occur after a slash /.
EX:
Any hints or tips? Thanks so much!
BMR777
I need to trim all characters after a specific character in a string in PHP. I want to take a string and remove all characters that occur after a slash /.
EX:
PHP:
$mystring = "url/index.php"
//Do Something...
$mystring = "url/"
Any hints or tips? Thanks so much!
BMR777