I have a question that I think is simple for almost everyone, but I did not find any material that really helped me solve it.
I am developing a micro-service in php that has as sole objective to re-use a set of functions in php that I got from another application.
So far so good, but one of the main functions of this set makes a check of the current url, being in a format similar to "... / users / {userid}" to use that userid for a certain processing.
The question is: how do I, when I type something like "... / users / 15" in the browser, it redirects me to this function file and throws the value 15 where it is "{userid } "?
Edit 1: I was able to resolve using the friendly url method in the response marked as appropriate, thanks to everyone.