简体   繁体   中英

anchor tag href creation with backslash in codeigniter

I want to pass RXKJ/00000004/2013 with my url in codeigniter. I have done

'<a href="'.base_url().'policy/manage/policy/riskDetails/'.urlencode('RXKJ/00000004/2013').'">RXKJ/00000004/2013</a>'

but not working.

You can encode any variable using base64_encode and decode using base64_decode.........

$encoded = base64_encode($variable]);

$decoded = base64_decode($encoded);

You can find more about Base64_encode

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM