How can I get the last digit in the url, laravel 5.5

Posted 7 months ago by daniel21gt

How about, I have the following line

dd(request()->headers->get('referer'));

which shows me this

"http://proyectodos.test/panel/selectord?valorusuario=3"

I have no idea if I am possible, but I want to extract the last digit, the number 3, can I?

Please sign in or create an account to participate in this conversation.