title: Remove all characters after a specific character
body: <p>Can anyone tell me how to remove characters after <code>?</code> in php. I have a string <code>test?q=new</code> and I need to remove the characters from the <code>?</code> to the end of the string.</p>