{"id":38,"date":"2014-07-24T11:30:19","date_gmt":"2014-07-24T03:30:19","guid":{"rendered":"http:\/\/www.phpzl.com\/?p=38"},"modified":"2014-07-24T11:30:19","modified_gmt":"2014-07-24T03:30:19","slug":"php%e4%b8%ad%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e5%8c%96%e4%b8%ba%e6%95%b4%e6%95%b0int-intval-printf","status":"publish","type":"post","link":"http:\/\/www.phpzl.com\/?p=38","title":{"rendered":"PHP\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570(int) intval() printf()"},"content":{"rendered":"<p><strong>\u80cc\u666f\u3001\u6982\u8ff0<br \/>\n<\/strong>\u3000\u3000\u65e9\u5728Sql\u6ce8\u5165\u6a2a\u884c\u7684\u524d\u51e0\u5e74\uff0c\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u5c31\u5df2\u7ecf\u88ab\u5217\u4e3a\u6bcf\u4e2aweb\u7a0b\u5e8f\u5fc5\u5907\u7684\u64cd\u4f5c\u4e86\u3002web\u7a0b\u5e8f\u5c06get\u6216post\u6765\u7684id\u3001\u6574\u6570\u7b49\u503c\u5f3a\u5236\u7ecf\u8fc7\u8f6c\u5316\u51fd\u6570\u8f6c\u5316\u4e3a\u6574\u6570\uff0c\u8fc7\u6ee4\u6389\u5371\u9669\u5b57\u7b26\uff0c\u5c3d\u53ef\u80fd\u964d\u4f4e\u7cfb\u7edf\u672c\u8eab\u88abSql\u6ce8\u5165\u7684\u53ef\u80fd\u6027\u3002<br \/>\n\u73b0\u5982\u4eca\uff0c\u867d\u7136Sql\u6ce8\u5165\u5df2\u7ecf\u9010\u6e10\u6de1\u51fa\u5386\u53f2\u821e\u53f0\uff0c\u4f46\u662f\uff0c\u4e3a\u4e86\u4fdd\u8bc1web\u7a0b\u5e8f\u7684\u6b63\u5e38\u8fd0\u884c\uff0c\u51cf\u5c11\u51fa\u9519\u6982\u7387\uff0c\u66f4\u597d\u7684\u4fdd\u8bc1\u7528\u7684\u6ee1\u610f\u5ea6\uff0c\u6211\u4eec\u540c\u6837\u9700\u8981\u5c06\u7528\u6237\u7684\u4e0d\u6b63\u786e\u8f93\u5165\u8f6c\u5316\u4e3a\u6211\u4eec\u6240\u9700\u8981\u7684\u3002<br \/>\n\u8f6c\u5316\u65b9\u5f0f<br \/>\n\u5728PHP\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u75283\u79cd\u65b9\u5f0f\u5c06\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u3002<br \/>\n<strong>1.\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u65b9\u5f0f<br \/>\n<\/strong>\u3000\u3000\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u65b9\u5f0f\uff0c\u5c31\u662f\u201c\u5728\u8981\u8f6c\u6362\u7684\u53d8\u91cf\u4e4b\u524d\u52a0\u4e0a\u7528\u62ec\u53f7\u62ec\u8d77\u6765\u7684\u76ee\u6807\u7c7b\u578b\u201d\uff08\u6458\u81eaPHP\u624b\u518c\u201c\u7c7b\u578b\u620f\u6cd5\u201d\u8282\uff09\u7684\u65b9\u5f0f\u3002<\/p>\n<p><span style=\"text-decoration: underline;\">\u7801<\/span><span style=\"font-size: 1rem; line-height: 1;\">\u4ee3\u7801\u5982\u4e0b:<\/span><\/p>\n<div id=\"code49447\">\n&lt;?php<br \/>\n$foo = &#8220;1&#8221;; \/\/ $foo \u662f\u5b57\u7b26\u4e32\u7c7b\u578b<br \/>\n$bar = (int)$foo; \/\/ $bar \u662f\u6574\u578b<br \/>\n?&gt;<\/div>\n<p>\u5bf9\u4e8e\u6574\u578b\u6765\u8bf4\uff0c\u5f3a\u5236\u8f6c\u6362\u7c7b\u578b\u540d\u79f0\u4e3aint\u6216\u8005integer\u3002<br \/>\n<strong>2.\u5185\u7f6e\u51fd\u6570\u65b9\u5f0f<br \/>\n<\/strong>\u3000\u3000\u5185\u7f6e\u51fd\u6570\u65b9\u5f0f\uff0c\u5c31\u662f\u4f7f\u7528PHP\u7684\u5185\u7f6e\u51fd\u6570intval\u8fdb\u884c\u53d8\u91cf\u7684\u8f6c\u6362\u64cd\u4f5c\u3002<\/p>\n<div><a id=\"copybut41161\"><\/a>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code41161\">\n&lt;?php<br \/>\n$foo = &#8220;1&#8221;; \/\/ $foo \u662f\u5b57\u7b26\u4e32\u7c7b\u578b<br \/>\n$bar = intval($foo); \/\/ $bar \u662f\u6574\u578b<br \/>\n?&gt;<\/div>\n<p><strong>intval\u51fd\u6570\u7684\u683c\u5f0f\u4e3a\uff1a<br \/>\n<\/strong>\u3000\u3000int intval(mixed $var [, int $base]); \uff08\u6458\u81eaPHP\u624b\u518c\uff09<br \/>\n\u867d\u7136PHP\u624b\u518c\u4e2d\u660e\u786e\u6307\u51fa\uff0cintval()\u4e0d\u80fd\u7528\u4e8earray\u548cobject\u7684\u8f6c\u6362\u3002\u4f46\u662f\u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u8f6c\u6362array\u7684\u65f6\u5019\u4e0d\u4f1a\u51fa\u4efb\u4f55\u95ee\u9898\uff0c\u8f6c\u6362\u503c\u4e3a1\uff0c\u800c\u4e0d\u662f\u60f3\u8c61\u4e2d\u76840\u3002\u6050\u6015\u662f\u56e0\u4e3a\u5728PHP\u5185\u90e8\uff0carray\u7c7b\u578b\u7684\u53d8\u91cf\u4e5f\u88ab\u8ba4\u4e3a\u662f\u975e\u96f6\u503c\u5f97\u7f18\u6545\u5427\u3002\u8f6c\u6362object\u7684\u65f6\u5019\uff0cPHP\u4f1a\u7ed9\u51fa\u5982\u4e0b\u7684 notice\uff1a<br \/>\nObject of class xxxx could not be converted to int in xxxxx.php on line xx<br \/>\n\u8f6c\u6362\u503c\u540c\u6837\u4e3a1\u3002<br \/>\n<strong>3.\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u65b9\u5f0f<\/strong><br \/>\n\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u65b9\u5f0f\uff0c\u662f\u5229\u7528sprintf\u7684%d\u683c\u5f0f\u5316\u6307\u5b9a\u7684\u53d8\u91cf\uff0c\u4ee5\u8fbe\u5230\u7c7b\u578b\u8f6c\u6362\u7684\u76ee\u7684\u3002<\/p>\n<div><a id=\"copybut19135\"><\/a>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code19135\">\n&lt;?php<br \/>\n$foo = &#8220;1&#8221;; \/\/ $foo \u662f\u5b57\u7b26\u4e32\u7c7b\u578b<br \/>\n$bar = sprintf(&#8220;%d&#8221;, $foo); \/\/ $bar \u662f\u5b57\u7b26\u4e32\u7c7b\u578b<br \/>\n?&gt;<\/div>\n<p>\u4e25\u683c\u610f\u4e49\u4e0a\u8bb2sprintf\u7684\u8f6c\u6362\u7ed3\u679c\u8fd8\u662fstring\u578b\uff0c\u56e0\u6b64\u5b83\u4e0d\u5e94\u8be5\u7b97\u662f\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u7684\u65b9\u5f0f\u3002\u4f46\u662f\u7ecf\u8fc7\u4ed6\u5904\u7406\u4e4b\u540e\u7684\u5b57\u7b26\u4e32\u503c\u786e\u5b9e\u5df2\u7ecf\u6210\u4e3a\u4e86\u201c\u88ab\u5f3a\u5236\u8f6c\u5316\u4e3a\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u6574\u6570\u201d\u3002<br \/>\n\u5b9e\u9645\u6d4b\u8bd5<br \/>\n\u4e0a\u9762\u4ecb\u7ecd\u4e86PHP\u4e2d\uff0c\u5c06\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u76843\u79cd\u65b9\u5f0f\u3002\u5bf9\u4e8e\u4e00\u822c\u7684\u7a0b\u5e8f\u5458\u6765\u8bf4\uff0c\u770b\u5230\u8fd9\u91cc\u5c31\u7b97\u7ed3\u675f\u4e86\uff0c\u4e0b\u9762\u7684\u90e8\u5206\u662f\u9488\u5bf9\u53d8\u6001\u7a0b\u5e8f\u5458\u7684\u3002<br \/>\n<strong>1.\u57fa\u672c\u529f\u80fd\u6d4b\u8bd5<br \/>\n<\/strong>\u3000\u3000\u8bbe\u5b9a\u4ee5\u4e0b\u6570\u7ec4\uff1a<\/p>\n<div><a id=\"copybut58655\"><\/a>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code58655\">\n&lt;?php<br \/>\n$a[] = &#8220;1&#8221;;<br \/>\n$a[] = &#8220;a1&#8221;;<br \/>\n$a[] = &#8220;1a&#8221;;<br \/>\n$a[] = &#8220;1a2&#8221;;<br \/>\n$a[] = &#8220;0&#8221;;<br \/>\n$a[] = array(&#8216;4&#8217;,2);<br \/>\n$a[] = &#8220;2.3&#8221;;<br \/>\n$a[] = &#8220;-1&#8221;;<br \/>\n$a[] = new Directory();<br \/>\n?&gt;<\/div>\n<p>\u4f7f\u7528\u4e09\u79cd\u65b9\u5f0f\u4f9d\u6b21\u8f6c\u5316\u4e0a\u9762\u7ed9\u51fa\u7684\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\uff0c\u67e5\u770b\u8f6c\u6362\u60c5\u51b5\u3002\u7a0b\u5e8f\u6e90\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div><a id=\"copybut40093\"><\/a>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code40093\">\n&lt;?php<br \/>\n$a[] = &#8220;1&#8221;;<br \/>\n$a[] = &#8220;a1&#8221;;<br \/>\n$a[] = &#8220;1a&#8221;;<br \/>\n$a[] = &#8220;1a2&#8221;;<br \/>\n$a[] = &#8220;0&#8221;;<br \/>\n$a[] = array(&#8216;4&#8217;,2);<br \/>\n$a[] = &#8220;2.3&#8221;;<br \/>\n$a[] = &#8220;-1&#8221;;<br \/>\n$a[] = new Directory();<br \/>\n\/\/ int<br \/>\nprint &#8220;(int)&lt;br \/&gt;&#8221;;<br \/>\nforeach($a as $v)<br \/>\n{<br \/>\nvar_dump((int)$v);<br \/>\nprint &#8220;&lt;br \/&gt;&#8221;;<br \/>\n}<br \/>\n\/\/ intval<br \/>\nprint &#8220;intval();&lt;br \/&gt;&#8221;;<br \/>\nforeach($a as $v)<br \/>\n{<br \/>\nvar_dump(intval($v));<br \/>\nprint &#8220;&lt;br \/&gt;&#8221;;<br \/>\n}<br \/>\n\/\/ sprintf<br \/>\nprint &#8220;sprintf();&lt;br \/&gt;&#8221;;<br \/>\nforeach($a as $v)<br \/>\n{<br \/>\nvar_dump(sprintf(&#8220;%d&#8221;, $v));<br \/>\nprint &#8220;&lt;br \/&gt;&#8221;;<br \/>\n}<br \/>\n?&gt;<\/div>\n<p>\u7a0b\u5e8f\u7684\u6700\u7ec8\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\uff08\u5df2\u7ecf\u53bb\u6389\u8f6c\u6362object\u65f6\u51fa\u73b0\u7684notice\uff09\uff1a<br \/>\n(int)<br \/>\nint(1)<br \/>\nint(0)<br \/>\nint(1)<br \/>\nint(1)<br \/>\nint(0)<br \/>\nint(1)<br \/>\nint(2)<br \/>\nint(-1)<br \/>\nint(1)<br \/>\nintval();<br \/>\nint(1)<br \/>\nint(0)<br \/>\nint(1)<br \/>\nint(1)<br \/>\nint(0)<br \/>\nint(1)<br \/>\nint(2)<br \/>\nint(-1)<br \/>\nint(1)<br \/>\nsprintf();<br \/>\nstring(1) &#8220;1&#8221;<br \/>\nstring(1) &#8220;0&#8221;<br \/>\nstring(1) &#8220;1&#8221;<br \/>\nstring(1) &#8220;1&#8221;<br \/>\nstring(1) &#8220;0&#8221;<br \/>\nstring(1) &#8220;1&#8221;<br \/>\nstring(1) &#8220;2&#8221;<br \/>\nstring(2) &#8220;-1&#8221;<br \/>\nstring(1) &#8220;1&#8221;<br \/>\n\u7531\u6b64\u53ef\u4ee5\u770b\u51fa\uff0c\u4e09\u79cd\u8f6c\u6362\u7684\u7ed3\u679c\u662f\u5b8c\u5168\u4e00\u6837\u7684\u3002\u90a3\u4e48\u4ece\u529f\u80fd\u4e0a\u8bb2\uff0c3\u79cd\u65b9\u5f0f\u90fd\u53ef\u4ee5\u80dc\u4efb\u8f6c\u6362\u5de5\u4f5c\uff0c\u90a3\u4e48\u63a5\u4e0b\u6765\u7684\u5de5\u4f5c\u5c31\u662f\u770b\u54ea\u4e00\u79cd\u6548\u7387\u66f4\u9ad8\u4e86\u3002<br \/>\n<strong>2.\u6027\u80fd\u6d4b\u8bd5<\/strong><br \/>\n\u88ab\u6d4b\u8bd5\u5b57\u7b26\u4e32\u662f\u6211\u4eec\u5728\u6ce8\u5165\u5de5\u4f5c\u4e2d\u53ef\u80fd\u4f1a\u4f7f\u7528\u5230\u7684\u4e00\u79cd\uff1a<\/p>\n<div><a id=\"copybut22339\"><\/a><span style=\"text-decoration: underline;\">\u590d\u5236\u4ee3\u7801<\/span>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code22339\">\n&lt;?php<br \/>\n$foo = &#8220;1&#8242;;Select * &#8230;&#8221;;<br \/>\n?&gt;<br \/>\n\u83b7\u53d6\u65f6\u95f4\u70b9\u7684\u51fd\u6570\u5982\u4e0b\uff08\u7528\u4e8e\u83b7\u53d6\u6d4b\u8bd5\u8d77\u59cb\u70b9\u548c\u7ed3\u675f\u70b9\uff0c\u4ee5\u8ba1\u7b97\u6d88\u8017\u65f6\u95f4\uff09\uff1a<\/p>\n<p>&lt;?php<br \/>\n**<br \/>\n* Simple function to replicate PHP 5 behaviour<br \/>\n*\/<br \/>\nfunction microtime_float()<br \/>\n{<br \/>\nlist($usec, $sec) = explode(&#8221; &#8220;, microtime());<br \/>\nreturn ((float)$usec + (float)$sec);<br \/>\n}<br \/>\n?&gt;<\/p><\/div>\n<p>\uff08\u6458\u81eaPHP\u624b\u518cmicrotime()\u51fd\u6570\u8282\uff09<br \/>\n\u6d4b\u8bd5\u8fc7\u7a0b\u662f\u4f7f\u7528\u6bcf\u79cd\u65b9\u5f0f\u8f6c\u6362\u53d8\u91cf$foo 1000000\u6b21\uff08100\u4e07\u6b21\uff09\uff0c\u5e76\u5c06\u5404\u81ea\u7684\u6d88\u8017\u65f6\u95f4\u8f93\u51fa\uff0c\u603b\u5171\u8fdb\u884c\u4e09\u7ec4\u6d4b\u8bd5\uff0c\u5c3d\u53ef\u80fd\u964d\u4f4e\u8bef\u5dee\u3002\u6d4b\u8bd5\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n<div><a id=\"copybut49042\"><\/a><span style=\"text-decoration: underline;\">\u590d\u5236\u4ee3\u7801<\/span>\u4ee3\u7801\u5982\u4e0b:<\/div>\n<div id=\"code49042\">\n&lt;?php<br \/>\nfunction microtime_float()<br \/>\n{<br \/>\nlist($usec, $sec) = explode(&#8221; &#8220;, microtime());<br \/>\nreturn ((float)$usec + (float)$sec);<br \/>\n}<br \/>\n$foo = &#8220;1&#8242;;Select * &#8230;&#8221;;<\/p>\n<p>\/\/ (int)<br \/>\n$fStart = microtime_float();<br \/>\nfor($i=0;$i&lt;1000000;$i++)<br \/>\n{<br \/>\n$bar = (int)$foo;<br \/>\n}<br \/>\n$fEnd = microtime_float();<br \/>\nprint &#8220;(int):&#8221; . ($fEnd &#8211; $fStart) . &#8220;s&lt;br \/&gt;&#8221;;<br \/>\n\/\/ intval()<br \/>\n$fStart = microtime_float();<br \/>\nfor($i=0;$i&lt;1000000;$i++)<br \/>\n{<br \/>\n$bar = intval($foo);<br \/>\n}<br \/>\n$fEnd = microtime_float();<br \/>\nprint &#8220;intval():&#8221; . ($fEnd &#8211; $fStart) . &#8220;s&lt;br \/&gt;&#8221;;<br \/>\n\/\/ sprintf()<br \/>\n$fStart = microtime_float();<br \/>\nfor($i=0;$i&lt;1000000;$i++)<br \/>\n{<br \/>\n$bar = sprintf(&#8220;%d&#8221;, $foo);<br \/>\n}<br \/>\n$fEnd = microtime_float();<br \/>\nprint &#8220;sprintf():&#8221; . ($fEnd &#8211; $fStart) . &#8220;s&lt;br \/&gt;&#8221;;<br \/>\n?&gt;<\/p><\/div>\n<p>\u6700\u7ec8\u7684\u6d4b\u8bd5\u7ed3\u679c\uff1a<br \/>\n(int):0.67205619812012s<br \/>\nintval():1.1603000164032s<br \/>\nsprintf():2.1068270206451s<br \/>\n(int):0.66051411628723s<br \/>\nintval():1.1493890285492s<br \/>\nsprintf():2.1008238792419s<br \/>\n(int):0.66878795623779s<br \/>\nintval():1.1613430976868s<br \/>\nsprintf():2.0976209640503s<\/p>\n<p>\u867d\u7136\u8fd9\u4e2a\u6d4b\u8bd5\u6709\u70b9\u53d8\u6001\uff08\u8c01\u4f1a\u8fde\u7eed\u8f6c\u6362100w\u6b21\u7684\u6574\u6570\uff1f\uff09\uff0c\u4f46\u662f\u7531\u6b64\u53ef\u4ee5\u770b\u51fa\uff0c\u4f7f\u7528\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u5c06\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u901f\u5ea6\u662f\u6700\u5feb\u7684\u3002<br \/>\n\u603b\u7ed3<br \/>\n\u4f7f\u7528\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u65b9\u5f0f\u5c06\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u662f\u6700\u76f4\u63a5\u7684\u8f6c\u5316\u65b9\u5f0f\u4e4b\u4e00\uff08\u53ef\u4ee5\u76f4\u63a5\u83b7\u5f97\u6574\u578b\u7684\u53d8\u91cf\u503c\uff09\u3002\u4ece\u4ee3\u7801\u53ef\u8bfb\u6027\u89d2\u5ea6\u4e0a\u8bb2\uff0csprintf\u65b9\u5f0f\u4ee3\u7801\u6bd4\u8f83\u957f\uff0c\u800c\u4e14\u5176\u7ed3\u679c\u6709\u53ef\u80fd\u8fd8\u9700\u8981\u518d\u6b21\u8fdb\u884c\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\uff0c\u800cintval\u51fd\u6570\u662f\u5178\u578b\u7684\u9762\u5411\u8fc7\u7a0b\u5f0f\u8f6c\u6362\uff0c\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u5219\u6bd4\u8f83\u76f4\u63a5\u7684\u5c06\u201c\u6211\u8981\u8f6c\u5316\u201d\u8fd9\u4e2a\u601d\u60f3\u4f20\u9012\u7ed9\u9605\u8bfb\u8005\u3002\u4ece\u6548\u7387\u4e0a\u8bb2\uff0c\u5f3a\u5236\u7c7b\u578b\u8f6c\u6362\u65b9\u5f0f\u4e5f\u662f\u6700\u5feb\u901f\u7684\u8f6c\u5316\u65b9\u5f0f\u3002\u56e0\u6b64\uff0c\u5bf9\u4e8e\u7ecf\u5e38\u8fdb\u884c\u8f6c\u5316\u5de5\u4f5c\u7684\u7a0b\u5e8f\u5458\uff0c\u6211\u63a8\u8350\u4f7f\u7528\u8fd9\u79cd\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"qua-blog-post-description\">\u80cc\u666f\u3001\u6982\u8ff0 \u3000\u3000\u65e9\u5728Sql\u6ce8\u5165\u6a2a\u884c\u7684\u524d\u51e0\u5e74\uff0c\u5b57\u7b26\u4e32\u8f6c\u5316\u4e3a\u6574\u6570\u5c31\u5df2\u7ecf\u88ab\u5217\u4e3a\u6bcf\u4e2aweb\u7a0b\u5e8f\u5fc5\u5907\u7684\u64cd\u4f5c\u4e86\u3002web\u7a0b\u5e8f [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/38"}],"collection":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":0,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.phpzl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}