This question already has an answer here:
- How to remove all numbers from string? 5 answers
I have a dynamic strings that outputs,
test-only
test-only-1
test-only-12
sample-only-2
sample-test-55
etc...
I would like to ask, how can i remove -1,-12,-2, -55 dynamically using php?
Thanks!
</div>