I have following python code to format the string,
endpoint = '/uri/{id}'
params = {'id': xxxx}
endpoint.format(**params)
which is given me a following result,
'/uri/xxxx'
I need to develop a function in PHP which is doing the same thing, and I found a question related this but still I’m not satisfy with that.
What would be the best way to do this kind of a thing with PHP?
Thanks in advance