php replace question

hyeclass

New Member
Messages
348
Reaction score
0
Points
0
hey,
how can i replace
test[backspace]

with tes

so [backspace] gets replace with backspace ....
donno how to explain this
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
You would want it like:


test[backspace]
or
wordtoyomomma[backspace]

Would become:


tes
or
wordtoyomomm

?

So the "[backspace]" gets "taken out", along with the last character in the string?
If you explain more clearly I can help you out.

*moves thread to right forum*
 
Last edited:
Top