User Tools

Site Tools


uphp:functions:base64_encode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:base64_encode [2017/04/10 13:15]
jeff
uphp:functions:base64_encode [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======base64_encode====== ======base64_encode======
  
-<badge>WMPRO FW >= 1.893</badge> <badge>WMMEGA FW >= 2.0</badge>+<badge>WMPRO, WMMINI FW >= 1.893</badge> <badge>WMMEGA FW >= 2.0</badge>
  
 Return the base64-encoded version of a <html><b><span style="color:green">string<span style="color:black"></b></html> Return the base64-encoded version of a <html><b><span style="color:green">string<span style="color:black"></b></html>
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">mixed <span style="font-size:125%;color:green">mixed
-<span style="color:black"> +<span style="color:black">base64_encode (
-</html> +
-[[base64_encode]] ( +
-<html>+
 <span style="color:green">string <span style="color:green">string
 <span style="color:blue">$data <span style="color:blue">$data
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 Encodes data using MIME Base64((The term Base64 is generic, and there are many implementations. MIME, which stands for Multi-purpose Internet Mail Extensions, is the most common that is seen today. It is used wherever there is a need to transmit strings that might contain special characters that would otherwise be interpreted, blocked or converted during transmission, for example, sending a password string to a server. Encoding data in Base64 results in it taking up roughly 33% more space than the original data. MIME Base64 encoding uses an '=' character at the end of a string to signify whether the last character is a single or double byte.)) Encodes data using MIME Base64((The term Base64 is generic, and there are many implementations. MIME, which stands for Multi-purpose Internet Mail Extensions, is the most common that is seen today. It is used wherever there is a need to transmit strings that might contain special characters that would otherwise be interpreted, blocked or converted during transmission, for example, sending a password string to a server. Encoding data in Base64 results in it taking up roughly 33% more space than the original data. MIME Base64 encoding uses an '=' character at the end of a string to signify whether the last character is a single or double byte.))
Line 24: Line 19:
 ====Parameter==== ====Parameter====
  
-<html><b><span style="color:blue">$data<span style="color:black"></b></html>:  A <html><b><span style="color:green">string<span style="color:black"></b></html> to encode+<html><b><span style="color:blue">$data<span style="color:black"></b>:  A <b><span style="color:green">string<span style="color:black"></b> to encode</html>
  
-====Return Value====+====Return Values====
  
-MIME Base64 encoded <html><b><span style="color:green">string<span style="color:black"></b></html> (or <html><b><span style="color:green">int<span style="color:black"></b></html> 0 for error)+<html>MIME Base64 encoded <b><span style="color:green">string<span style="color:black"></b> (or <b><span style="color:green">int<span style="color:black"></b> 0 for error)</html>
  
 ====Example==== ====Example====
uphp/functions/base64_encode.1491830138.txt.gz · Last modified: 2021/09/13 05:56 (external edit)