How to get the last/following value of url in php? 【Help】
CcDalao
CcDalao 2018-07-02 13:47:17
0
6
9453

How to get the last/following value of url in php?

For example

http://127.0.0.1/?index/t/1

The last one is 1

How? If you use get to get this 1, it will be /t/?id=1. It feels good sb

Is there any other way, guys

CcDalao
CcDalao

reply all(6)
天边

emmm, try using / to break it into an array, and then take the second to last and first number of the array

Adolph

parseurl can

Adolph

server can also

Chen_YR

I download a bunch of string functions from Baidu, intercept, explode and so on. Come on, your basics are worse than mine

  • reply OK, thank you
    CcDalao author 2018-07-04 12:20:35
请抬头

Use print


CcDalao

I don’t use tp framework

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template