Hi guys, l have a few strings for example: testing+123
quick preg_replace question ... need some help
7
Hi guys, l have a few strings for example:
testing+123
testing+1+2+3
What l'd like to do is strip off the + signs and anything after them,
So in this example both strings would become 'testing'
Can anyone help me with a preg_replace that would solve this problem for me?
Regards,
testing+123
testing+1+2+3
What l'd like to do is strip off the + signs and anything after them,
So in this example both strings would become 'testing'
Can anyone help me with a preg_replace that would solve this problem for me?
Regards,
- Brandon Tanner
- David V
- [1] reply
- Brandon Tanner
- [1] reply
- dwoods
- oldschoolwarrior
Next Topics on Trending Feed
-
7