Question and answer is powered by AnsPress.io
Get last url segment in codeigniter. When I print segment value the is display %20 for blank spase but I want to remove this %20. How can I do?
I follow this code:
$data=end($this->uri->segments);
Follow this example code and apply it.
<?php $data=end($this->uri->segments); $URL = urldecode($data); echo $URL; ?>