← All built-ins / base64_encode()
base64_encode()
base64_encode(string $s): string
Parameters
| Name | Type | Description |
|---|---|---|
| $s | string | raw bytes |
Return value
Base64 text (with = padding).
Example
echo base64_encode("holy php");aG9seSBwaHA=
| Name | Type | Description |
|---|---|---|
| $s | string | raw bytes |
Base64 text (with = padding).
echo base64_encode("holy php");aG9seSBwaHA=