<?php class crypt { private $skey; public function __construct($key) { $this->skey = hash("md5", $key, true); //32位skey } public function safe_b64encode($string) { $data = base64_encode($string); $data = str_replace(array('+', '/', '='), array('-', '_', ''), $data); return $data; } public function safe_b64decode($string) { $data = str_replace(array('-', '_'), array('+', '/'), $string); $mod4 = strlen($data) % 4; if ($mod4) { $data .= substr('====', $mod4); } return base64_decode($data); }
PHP ??? ? ??? ??????. ??? ??? ?????? ??? ? ????
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

12 Dec 2024
? ?????? Laravel ???? ??? ???? ??? ? ???? ???? ??? ?????. ?? ??? ???? ???? ??????? ???? ?? ???? ???? ??? ? ??? ??? ? ????.

12 Dec 2024
? ?????? Laravel ???? ??? ???? ?? ??? ? ?? ??? ???? ??? ?????. ?? ??? ???? ???? ??????? ???? ?? ???? ???? ??? ? ??? ??? ? ????.

08 Dec 2024
???? ??? ???? API ?, ????, ??? ???? ?? ??? ??? ???? ?? ? ?? ??? ?????. ??? ??? ? ?? ?? ??? ?? ?? ???? ???? ??? ???? ??? ? ????. ? ??? ??????

28 Nov 2024
PHP AES ??? ? ?? ???? ??: AES ??? ? ?? ??? ?? ??? PHP ???? ????? ??? ??????...

29 Dec 2024
PHP? ???? ?? Java? ????? PHP? ?? ?? ?????? ???? ???? ??? ?? ?? ??? ?????. ??? ??? ???? ?? PHP? ????? ? ??????. ? ???? ???? ??? ?? ?? ????.

10 Dec 2024
?? ?????? PHP ???? ?????(OOP)? ??? ??????. ???? ???? ???? ???? ? ??? ?? ??? ??? ???. OOP ??? ????? ???? ?? ?? ?? ? ????


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
