can any tell how to remove characters after ? in php. I have one string test?=new i need to remove the characters as well as = from that string.
Use the strstr function.
The third parameter true tells the function to return everything before the first occurrence of the second parameter.
true