0

I have one string like below

http://example.com/api/v1/post/getByFilter?pageNumber=18&pageSize=12

I am looking for output called 18 from it. Its value is not fixed, it will get changed. I am able to remove all before characters using str_replace, I have read about strstr too, But I do not know best or any way which can help me to remove before and after all characters from above string so I can get output called 18. It will great if someone can help me here for solve it. Thanks!

Vidhi Sharma
  • 133
  • 6

0 Answers0