将数组编码解码
($data, $operation = 'encode')
| 185 | |
| 186 | //将数组编码解码 |
| 187 | function arr_parse($data, $operation = 'encode') |
| 188 | { |
| 189 | if ($operation == 'encode') { |
| 190 | return base64_encode(http_build_query($data)); |
| 191 | } elseif ($operation == 'decode') { |
| 192 | parse_str(base64_decode($data), $da); |
| 193 | return $da; |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | //数据加密 |
| 198 | function arr_encrypt(Array $arr) |
no outgoing calls
no test coverage detected