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
Next revision Both sides next revision
uphp:functions:base64_encode [2017/03/31 12:45]
jeff
uphp:functions:base64_encode [2017/05/08 14:17]
jeff
Line 1: Line 1:
 ======base64_encode====== ======base64_encode======
-<badge>WMPRO FW >= 1.893</badge> <badge>WMMEGA FW >= 2.0</badge> 
  
-Return the base64-encoded version of a string+<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>
  
 ====Description==== ====Description====
  
-<well size="sm"><html><span style="font-size:125%;color:green">string +<well size="sm"> 
-<span style="color:black"></html>[[base64_encode]] +<html> 
-<html>(+<span style="font-size:125%;color:green">mixed 
 +<span style="color:black">base64_encode (
 <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></well>+</html> 
 +</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.))
  
 ====Parameter==== ====Parameter====
-<html><span style="color:blue"><b>$data</b><span style="color:black"></html>:  A string to encode 
  
-====Return Value==== +<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> 
-MIME Base64 encoded string (or 0 for error)+ 
 +====Return Values==== 
 + 
 +<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====
 +
 <code php> <code php>
 <? <?
Line 37: Line 43:
 ====See Also==== ====See Also====
  
-[[base64_decode()]] - Decode a base64-encoded string+[[base64_decode()]] - Decode a base64-encoded <html><b><span style="color:green">string<span style="color:black"></b></html>
uphp/functions/base64_encode.txt · Last modified: 2021/09/13 05:57 (external edit)