T
T
test2018-07-13 16:54:52
PHP
test, 2018-07-13 16:54:52

How to extract string by php regular expression?

There is a link to a page, like " site/page/15446 ". I need to replace this line with the desired route, and this requires a page number. In this example, 15446 . And how can it be extracted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-07-13
@HelmutKampfe

preg_match , the third parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question