{"id":48,"date":"2008-11-16T14:19:22","date_gmt":"2008-11-16T07:19:22","guid":{"rendered":"http:\/\/www.icez.net\/blog\/?p=48"},"modified":"2008-11-16T14:20:35","modified_gmt":"2008-11-16T07:20:35","slug":"%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86","status":"publish","type":"post","link":"https:\/\/www.icez.net\/blog\/48\/%e0%b8%95%e0%b8%a3%e0%b8%a7%e0%b8%88%e0%b8%aa%e0%b8%ad%e0%b8%9a%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%87%e0%b9%88%e0%b8%b2%e0%b8%a2%e0%b9%86","title":{"rendered":"0041 | \u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a\u0e07\u0e48\u0e32\u0e22\u0e46 \u0e14\u0e49\u0e27\u0e22 PHP 5.2"},"content":{"rendered":"<p>\u0e41\u0e1a\u0e1a\u0e27\u0e48\u0e32\u0e19\u0e31\u0e48\u0e07\u0e2b\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46<br \/>\n(\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e17\u0e33 project \u0e04\u0e23\u0e31\u0e1a)<br \/>\n\u0e01\u0e47\u0e40\u0e25\u0e22\u0e40\u0e08\u0e2d\u0e44\u0e2d\u0e49\u0e19\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e43\u0e2b\u0e49 \u0e41\u0e08\u0e48\u0e21\u0e14\u0e35\u0e41\u0e2e\u0e30 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e08\u0e33 regex \u0e2d\u0e22\u0e39\u0e48<\/p>\n<pre lang=\"php\"><?php\r\n\r\n\/*** an IP address ***\/\r\n$ip = \"2001:0db8:85a3:08d3:1319:8a2e:0370:7334\";\r\n\r\n\/*** try to validate as IPV6 address ***\/\r\nif(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === FALSE)\r\n{\r\necho \"$ip is not a valid IP\";\r\n}\r\nelse\r\n{\r\necho \"$ip is valid\";\r\n}?><\/pre>\n<p>\u0e17\u0e35\u0e48\u0e21\u0e32:<br \/>\n<a href=\"http:\/\/phpro.org\/tutorials\/Filtering-Data-with-PHP.html#9\" target=\"_blank\">PHP Tutorials Examples Filtering Data with PHP<\/a><br \/>\n<a href=\"http:\/\/coding.derkeiler.com\/Archive\/PHP\/php.general\/2008-07\/msg00650.html\" target=\"_blank\">[PHP] IPv6 validation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e41\u0e1a\u0e1a\u0e27\u0e48\u0e32\u0e19\u0e31\u0e48\u0e07\u0e2b\u0e32\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22\u0e46 (\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e17\u0e33 project \u0e04\u0e23\u0e31\u0e1a) \u0e01\u0e47\u0e40\u0e25\u0e22\u0e40\u0e08\u0e2d\u0e44\u0e2d\u0e49\u0e19\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e43\u0e2b\u0e49 \u0e41\u0e08\u0e48\u0e21\u0e14\u0e35\u0e41\u0e2e\u0e30 \u0e08\u0e30\u0e44\u0e14\u0e49\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e19\u0e31\u0e48\u0e07\u0e08\u0e33 regex \u0e2d\u0e22\u0e39\u0e48 \u0e17\u0e35\u0e48\u0e21\u0e32: PHP Tutorials Examples Filtering Data with PHP [PHP] IPv6 validation<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[30,5909,32],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-php","tag-email","tag-ip","tag-validation"],"_links":{"self":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icez.net\/blog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}