[英]anchor tag href creation with backslash in codeigniter
I want to pass RXKJ/00000004/2013
with my url in codeigniter. 我想在我的URL中将
RXKJ/00000004/2013
传递RXKJ/00000004/2013
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......... 您可以使用base64_encode编码任何变量,并使用base64_decode解码.........
$encoded = base64_encode($variable]);
$decoded = base64_decode($encoded);
You can find more about Base64_encode 您可以找到有关Base64_encode的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.