Home >Backend Development >PHP Tutorial >php how to base64 encode byte array
php how to base64 encode byte array
php how to base64 encode byte array
$result = base64_encode($data);
guessed the intention of the questioner
<code> $data['id'] = 1; $data['user_name'] = '会编码的熊'; var_dump(base64_encode(serialize($data)));</code>