Jump to content

find number in string? (4w3d10:22:22)

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
Hello,
If have a string with this format xwyd00:00:00
Like: 4w3d10:22:22 or 10w13d10:22:22
Now just I need x and y ??

How can I get it??

#2
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
Pretty much the same way as your other question: http://forum.codecal...fore-space.html
With a substr & a strpos
First locate the "x" and get his info, than locate the "y" and get his info




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users