{"id":4140,"date":"2017-08-14T06:56:05","date_gmt":"2017-08-14T06:56:05","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=4140"},"modified":"2017-08-14T06:57:11","modified_gmt":"2017-08-14T06:57:11","slug":"%e0%b8%a3%e0%b8%a7%e0%b8%a1-php-utils-%e0%b8%9f%e0%b8%b1%e0%b8%87%e0%b8%81%e0%b9%8c%e0%b8%8a%e0%b8%b1%e0%b9%88%e0%b8%99%e0%b8%ad%e0%b8%a3%e0%b8%a3%e0%b8%96%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%a3%e0%b8%a7%e0%b8%a1-php-utils-%e0%b8%9f%e0%b8%b1%e0%b8%87%e0%b8%81%e0%b9%8c%e0%b8%8a%e0%b8%b1%e0%b9%88%e0%b8%99%e0%b8%ad%e0%b8%a3%e0%b8%a3%e0%b8%96%e0%b8%9b%e0%b8%a3%e0%b8%b0%e0%b9%82%e0%b8%a2\/","title":{"rendered":"\u0e23\u0e27\u0e21 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22"},"content":{"rendered":"<h2>\u0e23\u0e27\u0e21 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22<\/h2>\n<p><\/br><br \/>\n<strong>\u0e23\u0e27\u0e21 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22<\/strong><\/p>\n<p>\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e1a\u0e48\u0e2d\u0e22 \u0e46 \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e23\u0e32\u0e21\u0e31\u0e01\u0e08\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01\u0e27\u0e48\u0e32 Utils function \u0e2b\u0e23\u0e37\u0e2d\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e04\u0e25\u0e32\u0e2a\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e25\u0e2d\u0e07\u0e21\u0e32\u0e14\u0e39\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a\u0e27\u0e48\u0e32\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e30\u0e44\u0e23\u0e1a\u0e49\u0e32\u0e07<!--more--><\/p>\n<p><\/br><\/p>\n<h4>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c<\/h4>\n<ul>\n<li><strong>1. \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e41\u0e1b\u0e25\u0e07 timestamp \u0e40\u0e1b\u0e47\u0e19\u0e08\u0e33\u0e19\u0e27\u0e31\u0e19\u0e40\u0e27\u0e25\u0e32\u0e41\u0e1a\u0e1a\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14<\/strong>\n<pre class=\"lang:default decode:true \" >function time_elapsed($datetime, $full = false) {\r\n\t\tdate_default_timezone_set(\"Asia\/Bangkok\");\r\n\t\t$now = new DateTime;\r\n\t\t$ago = new DateTime($datetime);\r\n\t\t$diff = $now-&gt;diff($ago);\r\n\t\t$diff-&gt;w = floor($diff-&gt;d \/ 7);\r\n\t\t$diff-&gt;d -= $diff-&gt;w * 7;\r\n\t\r\n\t\t$string = array(\r\n\t\t\t'y' =&gt; 'year',\r\n\t\t\t'm' =&gt; 'month',\r\n\t\t\t'w' =&gt; 'week',\r\n\t\t\t'd' =&gt; 'day',\r\n\t\t\t'h' =&gt; 'hour',\r\n\t\t\t'i' =&gt; 'minute',\r\n\t\t\t's' =&gt; 'second'\r\n\t\t);\r\n\t\tforeach ($string as $k =&gt; &amp;$v) {\r\n\t\t\tif ($diff-&gt;$k) {\r\n\t\t\t\t$v = $diff-&gt;$k . ' ' . $v . ($diff-&gt;$k &gt; 1 ? 's' : '');\r\n\t\t\t} else {\r\n\t\t\t\tunset($string[$k]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (!$full) $string = array_slice($string, 0, 1);\r\n\t\t$string = str_replace('months','\u0e40\u0e14\u0e37\u0e2d\u0e19',$string);\r\n\t\t$string = str_replace('month','\u0e40\u0e14\u0e37\u0e2d\u0e19',$string);\r\n\t\t$string = str_replace('weeks','\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c',$string);\r\n\t\t$string = str_replace('week','\u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c',$string);\r\n\t\t$string = str_replace('days','\u0e27\u0e31\u0e19',$string);\r\n\t\t$string = str_replace('day','\u0e27\u0e31\u0e19',$string);\r\n\t\t$string = str_replace('hours','\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07',$string);\r\n\t\t$string = str_replace('hour','\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07',$string);\r\n\t\t$string = str_replace('minutes','\u0e19\u0e32\u0e17\u0e35',$string);\r\n\t\t$string = str_replace('minute','\u0e19\u0e32\u0e17\u0e35',$string);\r\n\t\t$string = str_replace('seconds','\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35',$string);\r\n\t\t$string = str_replace('second','\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35',$string);\r\n\t\t\r\n\t\treturn $string ? $string = implode(' ', $string) . ' \u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27' : '\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e2a\u0e31\u0e01\u0e04\u0e23\u0e39\u0e48';\r\n\t}<\/pre>\n<p>\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e30\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/p>\n<pre class=\"lang:default decode:true \" >echo 'time_elapsed : '.Utils::time_elapsed($timestamp,true).'&lt;br&gt;';\r\ntime_elapsed : 8 \u0e40\u0e14\u0e37\u0e2d\u0e19 4 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c 22 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07 46 \u0e19\u0e32\u0e17\u0e35 25 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 \u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27<\/pre>\n<\/li>\n<li>\n<strong>2. \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e22\u0e48\u0e2d<\/strong><\/p>\n<pre class=\"lang:default decode:true \" >function number_shorten($number, $precision = 3, $divisors = null) {\r\n\t\tif (!isset($divisors)) {\r\n\t\t\t$divisors = array(\r\n\t\t\t\tpow(1000, 0) =&gt; '', \r\n\t\t\t\tpow(1000, 1) =&gt; 'K', \r\n\t\t\t\tpow(1000, 2) =&gt; 'M', \r\n\t\t\t\tpow(1000, 3) =&gt; 'B', \r\n\t\t\t\tpow(1000, 4) =&gt; 'T', \r\n\t\t\t\tpow(1000, 5) =&gt; 'Qa', \r\n\t\t\t\tpow(1000, 6) =&gt; 'Qi', \r\n\t\t\t);    \r\n\t\t}\r\n\t\tforeach ($divisors as $divisor =&gt; $shorthand) {\r\n\t\t\tif (abs($number) &lt; ($divisor * 1000)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn number_format($number \/ $divisor, $precision) . $shorthand;\r\n\t}<\/pre>\n<p>\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e30\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/p>\n<pre class=\"lang:default decode:true \" >echo 'number_shorten : '.Utils::number_shorten($thaibaht,0).'&lt;br&gt;';\r\nnumber_shorten : 34K<\/pre>\n<\/li>\n<\/ul>\n<p><\/br><\/p>\n<h4>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e43\u0e19 PHPUtils.php<\/h4>\n<pre class=\"lang:default decode:true \" >\r\nrequire_once(\"PHPUtils.php\");\r\n\t\r\n$timestamp = '2016-11-15 14:53:23';\r\n$thaibaht = 34000;\r\n\t\r\necho 'time_elapsed : '.Utils::time_elapsed($timestamp,true).'&lt;br&gt;'; \/\/ \u0e41\u0e1b\u0e25\u0e07 timestamp \u0e40\u0e1b\u0e47\u0e19\u0e08\u0e33\u0e19\u0e27\u0e19\u0e27\u0e31\u0e19\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32\r\necho 'number_shorten : '.Utils::number_shorten($thaibaht,0).'&lt;br&gt;'; \/\/ \u0e41\u0e1b\u0e25\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e22\u0e48\u0e2d\r\necho 'random_code : '.Utils::random_code(10).'&lt;br&gt;'; \/\/ \u0e2a\u0e38\u0e48\u0e21\u0e23\u0e2b\u0e31\u0e2a\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\r\necho 'get_thai_date : '.Utils::get_thai_date($timestamp).'&lt;br&gt;'; \/\/ \u0e41\u0e1b\u0e25\u0e07 timestamp \u0e40\u0e1b\u0e47\u0e19\u0e27\u0e31\u0e19\u0e40\u0e14\u0e37\u0e2d\u0e19\u0e1b\u0e35\u0e44\u0e17\u0e22\r\necho 'day_diff : '.Utils::day_diff($timestamp).'&lt;br&gt;'; \/\/ \u0e2b\u0e32\u0e08\u0e33\u0e19\u0e27\u0e19\u0e27\u0e31\u0e19\u0e17\u0e35\u0e48\u0e1c\u0e48\u0e32\u0e19\u0e21\u0e32\u0e08\u0e32\u0e01 timestamp\r\necho 'get_client_ip : '.Utils::get_client_ip().'&lt;br&gt;'; \/\/ \u0e2b\u0e32\u0e44\u0e2d\u0e1e\u0e35\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07<\/pre>\n<p><\/br><br \/>\n\u0e2a\u0e33 Web Developer \u0e17\u0e35\u0e48\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e14\u0e49\u0e27\u0e22 codeigniter \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e04\u0e25\u0e32\u0e2a PHPUtils.php \u0e44\u0e1b\u0e27\u0e32\u0e07\u0e44\u0e27\u0e49\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 libraries \u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e25\u0e32\u0e2a\u0e44\u0e14\u0e49 2 \u0e0a\u0e48\u0e2d\u0e07\u0e17\u0e32\u0e07\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<br \/>\n<strong>\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 controller <\/strong><\/p>\n<pre class=\"lang:default decode:true \" >$this-&gt;load-&gt;library('phputils'); <\/pre>\n<p><strong>\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1c\u0e48\u0e32\u0e19 autoload<\/strong><\/p>\n<pre class=\"lang:default decode:true \" >$autoload['libraries'] = array('phputils');<\/pre>\n<p><\/br><\/p>\n<blockquote><p><a href=\"http:\/\/codebee.co.th\/labs\/examples\/PHPUtils.php.zip\" target=\"_blank\">\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 PHPUtils.php.zip <\/a><\/p><\/blockquote>\n<p><\/br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e23\u0e27\u0e21 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22 \u0e23\u0e27\u0e21 PHP Utils \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1a\u0e48\u0e2d\u0e22 \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e19\u0e17\u0e33\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e41\u0e19\u0e48\u0e19\u0e2d\u0e19\u0e27\u0e48\u0e32\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e1a\u0e48\u0e2d\u0e22 \u0e46 \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e23\u0e32\u0e21\u0e31\u0e01\u0e08\u0e30\u0e40\u0e23\u0e35\u0e22\u0e01\u0e27\u0e48\u0e32 Utils function \u0e2b\u0e23\u0e37\u0e2d\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e23\u0e23\u0e16\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e17\u0e35\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e04\u0e25\u0e32\u0e2a\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e25\u0e2d\u0e07\u0e21\u0e32\u0e14\u0e39\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a\u0e27\u0e48\u0e32\u0e21\u0e35\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e2d\u0e30\u0e44\u0e23\u0e1a\u0e49\u0e32\u0e07<\/p>\n","protected":false},"author":1,"featured_media":4148,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[168,46],"tags":[1737,1742,1740,1744,1745,1735,1747,1748,1739,1736,1746,1738,1741,1743,1734,12],"class_list":{"0":"post-4140","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category--php-codeigniter-framework","8":"category-website-development-","9":"tag-php-day-diff","10":"tag-php-get-ip","11":"tag-php-random-code","12":"tag-php-thai-date","13":"tag-php-time-elapsed","14":"tag-php-utils","15":"tag-php-week","16":"tag-php-","23":"tag--php-utils","24":"tag--php","25":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=4140"}],"version-history":[{"count":10,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4140\/revisions"}],"predecessor-version":[{"id":4151,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/4140\/revisions\/4151"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/4148"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=4140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=4140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=4140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}