Back to Base32 class

Method decode

public string
decode
(mixed $str)
toString
Parameters
  • string $str The base32 string to convert
Returns
  • string The normal string
Class: Base32
Project: Joomla

Method decode - Source code

/**
 * toString
 *
 * Convert any base32 string to a normal sctring
 * This should be binary safe...
 *
 * @param   string  $str  The base32 string to convert
 *
 * @return  string  The normal string
 */
public function decode($str)
{
    $str = strtoupper($str);
    return $this->bin2str($this->toBin($str));
}