Mega Code Archive
Categories
/
Php
/
Strings
Remove URL Parameter Substr Strstr
0 and (strpos($In_url, "?") == strlen($L_url))) { // Then the question mark that is trailing has no parameters, remove it $In_url = substr($In_url, 0, strlen($L_url - 1)); } return $In_url; } ?>