Basically I want to take my string and remove everything after the first occurrence of a / character, including the / itself.
Not sure how to do this one.
you could do it like this
<? $var = "This is a string with a / in it"; $pos = strpos($var, "/"); $var = substr_replace($var, "", $pos); echo $var; ?>