Friday, 6 September 2013

Remove everything in a string untill the first number

Remove everything in a string untill the first number

Hello again Stackoverflow!
I'm going to keep it simple:
Current string:
$string = "Lorum ipsum dolor 14-08-2013 sit amet";
What I want to have left:
14-08-2013 sit amet
I know you can do this using strstr, but the date might differ once in a
while, so that's why I want to remove everything untill the first number.
Can you guys help me?

No comments:

Post a Comment