There are multiple ways to remove a character from a string in PHP. Here are two common approaches:
substr
function:main.php315 chars9 lines
str_replace
function:main.php159 chars6 lines
Note that both approaches will remove all occurrences of the specified character in the string. If you want to remove only the first occurrence, you can modify the code accordingly.
gistlibby LogSnag