亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長(zhǎng)資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

    php base64_decode()方法是干什么的

    在php中,base64_decode()方法的作用是對(duì)使用MIME base64編碼的數(shù)據(jù)進(jìn)行解碼,并返回原始數(shù)據(jù),語(yǔ)法“base64_decode($data,$strict)”。

    php base64_decode()方法是干什么的

    本教程操作環(huán)境:windows7系統(tǒng)、PHP7.1版,DELL G3電腦

    在php中,我們可以使用base64_encode()函數(shù)來(lái)進(jìn)行base64加密,而base64_decode()函數(shù)則可解密。

    base64_decode()函數(shù)是 PHP 中的一個(gè)內(nèi)置函數(shù),用于對(duì)使用 MIME base64 編碼的數(shù)據(jù)進(jìn)行解碼。

    語(yǔ)法:

    base64_decode(string $data, bool $strict = false)

    對(duì) base64 編碼的 data 進(jìn)行解碼。

    參數(shù):此函數(shù)接受兩個(gè)參數(shù)

    • data:編碼過(guò)的數(shù)據(jù)。

    • strict:一個(gè)可選參數(shù)。當(dāng)設(shè)置 strict 為 true 時(shí),一旦輸入的數(shù)據(jù)超出了 base64 字母表,將返回 false。 否則會(huì)靜默丟棄無(wú)效的字符。

    返回值:返回原始數(shù)據(jù), 或者在失敗時(shí)返回 false。返回的數(shù)據(jù)可能是二進(jìn)制的。

    示例:

    <?php $str = 'SGVsbG8gV29ybGQ='; echo base64_decode($str); ?>

    輸出結(jié)果:

    php base64_decode()方法是干什么的

    推薦學(xué)習(xí):《PHP視頻教程》

    贊(0)
    分享到: 更多 (0)
    網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)