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
emmm, try using / to break it into an array, and then take the second to last and first number of the array
parseurl can
server can also
I download a bunch of string functions from Baidu, intercept, explode and so on. Come on, your basics are worse than mine
Use print
I don’t use tp framework
emmm, try using / to break it into an array, and then take the second to last and first number of the array
parseurl can
server can also
I download a bunch of string functions from Baidu, intercept, explode and so on. Come on, your basics are worse than mine
Use print
I don’t use tp framework