note 103850 deleted from function.base64-decode by danbrown

From: Date: Fri, 06 May 2011 16:14:40 +0000
Subject: note 103850 deleted from function.base64-decode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179500@lists.php.net to get a copy of this message
Note Submitter: gutzmer at usa dot net ---- For anyone interested in the 'base64url' variant encoding, you can use this pair of functions: function base64url_encode($data) { return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); } function base64url_decode($data) { return base64_decode(str_pad(strtr($data, '-_', '+/'), strlen($data) % 4, '=', STR_PAD_RIGHT)); }

« previous php.notes (#179500) next »