{"id":93,"date":"2012-11-15T00:26:47","date_gmt":"2012-11-14T16:26:47","guid":{"rendered":"http:\/\/www.yeetrack.com\/post\/2012-11-14\/php%25E9%25AD%2594%25E6%259C%25AF%25E6%2596%25B9%25E6%25B3%2595%25E8%25A7%25A3%25E6%259E%2590"},"modified":"2013-04-20T17:27:15","modified_gmt":"2013-04-20T09:27:15","slug":"php%e9%ad%94%e6%9c%af%e6%96%b9%e6%b3%95%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.yeetrack.com\/?p=93","title":{"rendered":"php\u9b54\u672f\u65b9\u6cd5\u89e3\u6790"},"content":{"rendered":"<p>PHP\u628a\u6240\u6709\u4ee5__\uff08\u4e24\u4e2a\u4e0b\u5212\u7ebf\uff09\u5f00\u5934\u7684\u7c7b\u65b9\u6cd5\u5f53\u6210\u9b54\u672f\u65b9\u6cd5\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u6240\u4ee5\u5f53\u81ea\u5b9a\u4e49\u7c7b\u65b9\u6cd5\u65f6\uff0c\u9664\u4e86\u9b54\u672f\u65b9\u6cd5,\u5efa\u8bae\u4e0d\u8981\u4ee5 __\u4e3a\u524d\u7f00\u3002 php\u9b54\u672f\u65b9\u6cd5\u5305\u62ec\uff1a __construct(), __destruct(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __clone(),__call()\u7b49\u3002<\/p>\n<ol class=\"edui-filter-decimal\">\n<li>\n<p>__construct() \u662fphp\u4e2d\u7c7b\u7684\u6784\u9020\u65b9\u6cd5\uff0c\u7528\u6765\u521d\u59cb\u5316\u7c7b\u4e2d\u7684\u5c5e\u6027\u3002\u540c\u4e00\u4e2a\u7c7b\u4e2d\u53ea\u80fd\u58f0\u660e\u4e00\u4e2a\u6784\u9020\u65b9\u6cd5\uff0c\u6545\u4e0d\u80fd\u91cd\u8f7d\u3002\u4f46\u53ef\u4ee5\u4f7f\u7528\u9ed8\u8ba4\u53c2\u6570\u3002\u6784\u9020\u65b9\u6cd5\u4e00\u822c\u662fpublic\u7c7b\u578b\u7684\uff0c\u5982\u679c\u662fprivate\u7c7b\u578b\uff0c\u5c31\u4f1a\u6784\u6210\u5355\u4f8b\u6a21\u5f0f\uff0c<a href=\"http:\/\/easyphp.yeetrack.com\/post\/2012-11-14\/php%E5%8D%95%E4%BE%8B%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F\" target=\"_blank\">php\u5355\u4f8b\u8bbe\u8ba1\u6a21\u5f0f<\/a>\u3002<\/p>\n<pre config=\"brush:php;toolbar:false;\">&lt;?php\n    class Person\n    {\n        private $name;\n        private $age;\n        private $email;\n        \/\/\u58f0\u660e\u7c7b\u7684\u6784\u9020\u51fd\u6570\n        public function __construct($name=&quot;yeetrack&quot;, $age=1, $email=&quot;yeetrack@123.com&quot;)\n        {\n            $this-&gt;name = $name;\n            $this-&gt;age = $age;\n            $this -&gt;email = $email;\n        }\n        public function printInfo()\n        {\n            echo &quot;name-&gt;&quot; . $this-&gt;name . &quot; age-&gt;&quot; . $this-&gt;age . &quot; email-&gt;&quot; . $this-&gt;email . &quot;&lt;br\/&gt;&quot;;\n        }\n    }\n                                                                                                                                                                                                          \n    $per = new Person(&quot;youthflies&quot;,2);\n    $per-&gt;printInfo();\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<\/li>\n<li>\n<p>__destruct()\u662fphp\u4e2d\u7c7b\u7684\u6790\u6784\u65b9\u6cd5\uff0c\u5bf9\u8c61\u5728\u9500\u6bc1\u524d\u81ea\u52a8\u8c03\u7528\u6b64\u65b9\u6cd5\uff0c\u5e38\u5728\u6790\u6784\u65b9\u6cd5\u4e2d\u6267\u884c\u5173\u95ed\u6587\u4ef6\uff0c\u91ca\u653e\u8fde\u63a5\u7b49\u64cd\u4f5c\u3002php\u81ea\u5e26\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u5f53\u5bf9\u8c61\u4e0d\u80fd\u88ab\u8bbf\u95ee\u65f6\u5c31\u4f1a\u81ea\u52a8\u542f\u7528\u5783\u573e\u56de\u6536\u7684\u673a\u5236\uff0c\u91ca\u653e\u5bf9\u8c61\u5360\u7528\u7684\u5806\u7a7a\u95f4\u3002\u800cphp\u7684\u6790\u6784\u65b9\u6cd5\u662f\u5728\u542f\u52a8\u5783\u573e\u56de\u6536\u4e4b\u524d\u8c03\u7528\u7684\u65b9\u6cd5\u3002\u6790\u6784\u65b9\u6cd5\u65b9\u6cd5\u53ea\u6709\u9700\u8981\u7684\u65f6\u5019\u624d\u9700\u8981\u58f0\u660e\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e3a\u4e86\u5c01\u88c5\u548c\u6570\u636e\u4fdd\u62a4\uff0c\u6211\u4eec\u4e00\u822c\u628a\u7c7b\u7684\u6570\u636e\u5c5e\u6027\u58f0\u660e\u4e3aprivate\uff0c\u5982\u679c\u9700\u8981\u9891\u7e41\u7684\u8bfb\u53d6\u6570\u636e\u5c5e\u6027\uff0c\u5c31\u4f1a\u5f88\u7e41\u7410\u3002__set()\u65b9\u6cd5\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5b83\u80fd\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\u4e3aprivate\u7c7b\u578b\u7684\u6570\u636e\u8d4b\u503c\u3002\u627f\u63a5\u4e0a\u9762\u4ee3\u7801\uff1a<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u672f\u65b9\u6cd5__set()\n        public function __set($propertyName, $value)\n        {\n            if($propertyName == &quot;name&quot;)\n                $this-&gt;name = $value; \/\/\u4e3aname\u8d4b\u503c\n            elseif ($propertyName == &quot;age&quot;)\n            {   \n                if($value&gt;200 | $value&lt;0) \/\/\u5224\u65adage\u8303\u56f4\n                    return;\n                $this-&gt;age = $value;\n            }\n            elseif ($propertyName == &quot;email&quot;)\n                $this-&gt;email = $value;\n        }<\/pre>\n<p>\u6709\u4e86__set\u7684\u58f0\u660e\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd9\u6837\u4e3a\u6210\u5458\u5c5e\u6027\u8d4b\u503c\uff08\u867d\u7136\u5c5e\u6027\u662fprivate\u7c7b\u578b\u7684\uff09<\/p>\n<pre config=\"brush:php;toolbar:false;\">$per = new Person(&quot;youthflies&quot;,2);\n$per-&gt;name = &quot;youthflies&quot;;\n$per -&gt;age = 12;\n$per-&gt;email = &quot;youthflies@123.com&quot;;\n$per-&gt;printInfo();<\/pre>\n<p>\u8fd9\u6837\u8d4b\u503c\uff0cphp\u5c31\u4f1a\u9ed8\u8ba4\u53bb\u8c03\u7528__set()\u65b9\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5982\u679c\u4e00\u4e2a\u5c5e\u6027\u88ab\u58f0\u660e\u4e3aprivate\u7c7b\u578b\uff0c\u800c\u5728\u5bf9\u8c61\u5916\u9762\u76f4\u63a5\u83b7\u53d6\u8be5\u5c5e\u6027\uff0cphp\u5c31\u4f1a\u9ed8\u8ba4\u53bb\u5bfb\u627e__get()\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u53ef\u4ee5\u5728\u7a0b\u5e8f\u8fd0\u884c\u4e2d\u83b7\u53d6private\u7c7b\u578b\u7684\u6570\u636e\u3002\u627f\u63a5\u4e0a\u9762\u4ee3\u7801\uff1a<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u672f\u65b9\u6cd5__get()\n        public function __get($propertyName)\n        {\n            if($propertyName == &quot;name&quot;)\n                return $this-&gt;name;\n            elseif ($propertyName == &quot;age&quot;) \/\/\u4e0d\u5141\u8bb8\u83b7\u53d6age\u5c5e\u6027\n                return &quot;secret&quot;;\n            elseif ($propertyName == &quot;email&quot;)\n                return $this-&gt;email;\n        }<\/pre>\n<p>\u5982\u4e0a\u9762\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u5728__get()\u65b9\u6cd5\u4e2d\u52a0\u5165\u4e00\u4e9b\u6743\u9650\u63a7\u5236\uff0c\u6216\u8005\u8fd4\u56de\u4e00\u4e9b\u5047\u6570\u636e\u7b49\u7b49\u3002<\/p>\n<\/li>\n<li>\n<p>isset()\u65b9\u6cd5\u7528\u6765\u5224\u65ad\u53d8\u91cf\u662f\u5426\u5b58\u5728\u3002\u5982\u679c\u7c7b\u4e2d\u7684\u5c5e\u6027\u4e3apublic\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u7528isset()\u65b9\u6cd5\u6765\u5224\u65ad\u5bf9\u8c61\u4e2d\u7684\u5c5e\u6027\uff0c\u4f46\u5982\u679c\u4e3aprivate\u7c7b\u578b\u7684\uff0c\u5c31\u4e0d\u80fd\u76f4\u63a5\u5224\u65ad\u4e86\uff0c\u9700\u8981\u7528\u5230__isset()\u65b9\u6cd5\u3002\u53ea\u6709\u5728\u7c7b\u5185\u90e8\u58f0\u660e\u4e86__isset()\u65b9\u6cd5\uff0c\u6211\u4eec\u624d\u53ef\u4ee5\u5728\u7c7b\u5916\u90e8\u7528isset()\u6765\u95f4\u63a5\u5224\u65ad\u7c7b\u4e2d\u7684private\u6570\u636e\u3002\u627f\u63a5\u4e0a\u9762\u4ee3\u7801\uff1a<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u672f\u65b9\u6cd5__isset()\n        public function __isset($propertyName)\n        {\n            if($propertyName == &quot;name&quot;)\n                return isset($this-&gt;name);\n            elseif ($propertyName == &quot;age&quot;)\/\/\u4e0d\u5141\u8bb8\u5224\u65adage\u5c5e\u6027\n                return false;\n            elseif ($propertyName == &quot;email&quot;)\n                return isset($this-&gt;email);\n        }<\/pre>\n<p>\u7ecf\u8fc7\u4e0a\u9762\u7684\u58f0\u660e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u7c7b\u5916\u8fd9\u6837\uff1a<\/p>\n<pre config=\"brush:php;toolbar:false;\">var_dump(isset($per-&gt;name));\nvar_dump(isset($per-&gt;age));\nvar_dump(isset($per-&gt;email));<\/pre>\n<p>&nbsp;<\/p>\n<\/li>\n<li>\n<p>unset()\u65b9\u6cd5\u7528\u6765\u5220\u9664\u53d8\u91cf\uff0c\u5982\u679c\u7c7b\u4e2d\u7684\u5c5e\u6027\u662fpublic\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u7528unset()\u5220\u9664\uff0c\u5982\u679c\u4e3aprivate\uff0c\u5c31\u8981\u901a\u8fc7__unset()\u65b9\u6cd5\u4e86\uff0c\u7c7b\u4f3c\u4e8e__isset()\u65b9\u6cd5\u3002<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__unset()\u65b9\u6cd5\n        public function __unset($propertyName)\n        {\n            if($propertyName == &quot;name&quot;)\/\/\u4e0d\u5141\u8bb8\u5220\u9664name\u5c5e\u6027\n                return;\n            elseif($propertyName == &quot;age&quot;)\n                unset($this-&gt;age);\n            elseif ($propertyName == &quot;email&quot;)\n                unset($this-&gt;email);\n        }<\/pre>\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u7c7b\u5916\u9762\u76f4\u63a5unset()\u7c7b\u4e2dprivate\u7c7b\u578b\u7684\u5c5e\u6027\u4e86\u3002<\/p>\n<\/li>\n<li>\n<p>__toString()\u7528\u6765\u83b7\u53d6\u5bf9\u8c61\u7684\u5b57\u7b26\u4e32\u8f93\u51fa\uff0c\u5f53\u6211\u4eec\u76f4\u63a5\u6253\u5370\u67d0\u5bf9\u8c61\u5f15\u7528 \u65f6\uff0c\u8be5\u65b9\u6cd5\u88ab\u81ea\u52a8\u8c03\u7528\u3002 \u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__toString()\n        public function __toString()\n        {\n            return &quot;name: &quot; . $this-&gt;name . &quot;&lt;br\/&gt;age: &quot; . $this-&gt;age . &quot;&lt;br\/&gt;email: &quot; . $this-&gt;email . &quot;&lt;br\/&gt;&quot;;\n        }<\/pre>\n<p>\u8fd9\u6837\u6211\u4eec\u53ef\u4ee5\u5728\u5916\u9762\u76f4\u63a5 echo $per; php\u4f1a\u9ed8\u8ba4\u53bb\u8c03\u7528\u7c7b\u4e2d\u7684__toString()\u65b9\u6cd5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f53\u6211\u4eec\u8c03\u7528\u7684\u65b9\u6cd5\uff0c\u5728\u7c7b\u4e2d\u4e0d\u5b58\u5728\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0error\uff0c\u7a0b\u5e8f\u4f1ashutdown\u3002__call()\u65b9\u6cd5\u7528\u6765\u89e3\u51b3\u8fd9\u79cd\u60c5\u51b5\uff0c\u5f53\u8c03\u7528\u4e86\u7c7b\u4e2d\u4e0d\u5b58\u5728\u7684\u65b9\u6cd5\u65f6\uff0c__call()\u65b9\u6cd5\u5c31\u4f1a\u88ab\u8c03\u7528\u3002\u8be5\u65b9\u6cd5\u6709\u4e24\u4e2a\u53c2\u6570\uff0c\u4e00\u662f\u4e0d\u5b58\u5728\u7684\u65b9\u6cd5\u7684\u540d\u79f0\uff0c\u4e8c\u662f\u4e0d\u5b58\u5728\u7684\u65b9\u6cd5\u7684\u53c2\u6570\uff08\u4ee5\u6570\u7ec4\u7684\u5f62\u5f0f\u4fdd\u5b58\uff09\u3002<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__call()\n        public function __call($methodName, $args)\n        {\n            echo &quot;\u65b9\u6cd5\uff1a&quot; . $methodName . &quot;\u4e0d\u5b58\u5728&lt;br\/&gt;&quot;;\n            print_r($args);\n        }<\/pre>\n<p>&nbsp;<\/p>\n<\/li>\n<li>\n<p>__autoload()\u65b9\u6cd5\u7528\u4e8e\u81ea\u52a8\u52a0\u8f7d\u9700\u8981\u7684\u7c7b\u6587\u4ef6\u3002 &nbsp;\u6211\u4eec\u4e00\u628a\u4e3a\u6bcf\u4e2a\u7c7b\u90fd\u5355\u72ec\u5efa\u7acb\u4e00\u4e2aphp\u6587\u4ef6\uff0c\u5f53\u9700\u8981\u8fd9\u4e2a\u7c7b\u65f6\uff0c\u5c31\u7528include\u5c06php\u6587\u4ef6\u5305\u542b\u8fdb\u6765\u3002 \u5982\u679c\u7c7b\u6587\u4ef6\u975e\u5e38\u591a\uff0c\u5c31\u5f88\u9ebb\u70e6\u3002__autoload()\u53ef\u4ee5\u81ea\u52a8\u52a0\u8f7d\uff0c\u5f53\u7136\u524d\u63d0\u662f\u6211\u4eec\u7528\u4e00\u5b9a\u89c4\u5219\u547d\u540d\u7c7b\u6587\u4ef6\u3002 &nbsp;&nbsp;<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__autoload()\n        public function __autoload($className)\n        {\n            include(strtolower($className) . &quot;.class.php&quot;;\n        }\n                                                                      \n        $hello = new Hello();<\/pre>\n<p> &nbsp;&nbsp;&nbsp;\u5982\u4e0a\u4ee3\u7801\uff0c\u6211\u4eec\u65b0\u5efaHello\u5bf9\u8c61\uff0c\u5982\u679cHello\u7c7b\u4e0d\u5b58\u5728\uff0c\u5c31\u4f1a\u9ed8\u8ba4\u8c03\u7528autoload()\u65b9\u6cd5\uff0c$className\u83b7\u5f97\u53c2\u6570&quot;Hello&quot;\uff0c\u7136\u540e\u5b83\u53bbinclude\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u7684Hello.class.php\u6587\u4ef6\uff0c\u5982\u679c\u6211\u4eec\u6309\u7167\u8fd9\u79cd\u65b9\u5f0f\u547d\u540d\u6211\u4eec\u7684php\u6587\u4ef6\uff0c\u5c31\u4f1ainclude\u6210\u529f\u3002 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<\/li>\n<li>\n<p>php5\u901a\u8fc7\u5f15\u7528\u6765\u8c03\u7528\u5bf9\u8c61\uff0c\u5982\u679c\u6709\u5efa\u7acb\u4e00\u4e2a\u72ec\u7acb\u526f\u672c\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7clone\u65b9\u6cd5\uff0cclone\u83b7\u5f97\u7684\u65f6\u4e24\u4e2a\u5b8c\u5168\u4e00\u6837\u4e14\u4e92\u76f8\u72ec\u7acb\u7684\u5bf9\u8c61\u3002\u5982\u679c\u60f3\u5728clone\u8fc7\u7a0b\u4e2d\u8fdb\u884c\u4e00\u4e9b\u81ea\u5b9a\u4e49\u7684\u521d\u59cb\u5316\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5728\u7c7b\u4e2d\u58f0\u660e__clone()\u65b9\u6cd5\uff0c\u5728\u8c03\u7528clone()\u65b9\u6cd5\u65f6\uff0cphp\u4f1a\u9ed8\u8ba4\u8c03\u7528__clone()\u65b9\u6cd5\u3002 &nbsp;<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__clone()\n        public function __clone()\n        {\n            $this-&gt;name = &quot;youthflies__clone&quot;;\n            $this-&gt;age = &quot;12__clone&quot;;\n            $this-&gt;email = &quot;youthflies@124.com__clone&quot;;\n        }<\/pre>\n<p>\u58f0\u660e\u540e\uff0c &nbsp;\u5229\u7528\u4e0b\u9762\u4e24\u884c\u4ee3\u7801\u67e5\u770b\u6548\u679c\u3002 &nbsp;<\/p>\n<pre config=\"brush:php;toolbar:false;\">    $per2 = clone $per;\n    $per2-&gt;printInfo();<\/pre>\n<p>&nbsp;<\/p>\n<\/li>\n<li>\n<p>__sleep()\u65b9\u6cd5\u5728\u5c06\u5bf9\u8c61\u4e32\u884c\u5316\u65f6\uff08\u5373\u8c03\u7528serialize()\u51fd\u6570\u65f6)\u4f1a\u88ab\u8c03\u7528\uff0c\u5173\u4e8e\u4e32\u884c\u5316\uff0c\u53c2\u8003<a href=\"http:\/\/easyphp.yeetrack.com\/post\/2012-11-14\/php%E5%AF%B9%E8%B1%A1%E4%B8%B2%E8%A1%8C%E5%8C%96\" target=\"_blank\">php\u5bf9\u8c61\u4e32\u884c\u5316 <\/a>\u3002__sleep()\u65b9\u6cd5\u6ca1\u6709\u53c2\u6570\uff0c\u8fd4\u56de\u503c\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u7528\u6765\u6307\u5b9a\u8981\u88ab\u4e32\u884c\u5316\u7684\u5c5e\u6027\u3002 &nbsp;<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__sleep()\n        public function __sleep()\n        {\n            return array(&quot;name&quot;,&quot;email&quot;);\n        }<\/pre>\n<p>\u8fd9\u6837\u5728\u4e32\u884c\u5316$per\u65f6\uff0c\u5c31\u53ea\u4f1a\u628aname\u548cemail\u4e24\u4e2a\u5c5e\u6027\u4e32\u884c\u5316\u3002<\/p>\n<\/li>\n<li>\n<p>__wakeup()\u65b9\u6cd5\u7528\u6765\u5728\u53cd\u4e32\u884c\u5316\u5bf9\u8c61\u65f6\uff0c\u7ed9\u5c06\u8981\u751f\u6210\u7684\u5bf9\u8c61\u521d\u59cb\u5316\u4e00\u4e9b\u6570\u636e\u3002<\/p>\n<pre config=\"brush:php;toolbar:false;\">\/\/\u58f0\u660e\u9b54\u6cd5\u65b9\u6cd5__wakeup()\n        public function __wakeup()\n        {\n            $this-&gt;age = 12;\n        }<\/pre>\n<p>\u7531\u4e8e\u6211\u4eec\u5728\u58f0\u660e__sleep()\u65f6\uff0c\u6ca1\u6709\u4e32\u884c\u5316age\u5c5e\u6027\uff0c\u6240\u4ee5\u6211\u4eec\u5728__wakeup()\u65b9\u6cd5\u4e2d\uff0c\u624b\u52a8\u4e3aage\u5c5e\u6027\u8d4b\u503c\uff0c\u8fd9\u6837\u5f53\u53cd\u4e32\u884c\u5316\u65f6\uff0cage\u5c31\u4f1a\u88ab\u8d4b\u503c\u4e3a12. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u628a\u6240\u6709\u4ee5__\uff08\u4e24\u4e2a\u4e0b\u5212\u7ebf\uff09\u5f00\u5934\u7684\u7c7b\u65b9\u6cd5\u5f53\u6210\u9b54\u672f\u65b9\u6cd5\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[33],"tags":[24,7],"class_list":["post-93","post","type-post","status-publish","format-standard","hentry","category-coding","tag-php","tag-7"],"views":2565,"_links":{"self":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":2,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/403"}],"wp:attachment":[{"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yeetrack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}