Posts by Mayan Lima • 11 points
1 post
-
1
votes4
answers360
viewsQ: How do I remove characters from a string to a certain extent? in PHP
I have the following code: $numeros = "142-22"; I just need "142" and I want to ignore the rest of "-22". How do I do it? Expected exit: $numeros = "142-22"; $num = "142"; Is there a function I can…