å人çãªã¡ã¢ã§ããphp 5.2.0以éã¯æ¨æºã§å ¥ã£ã¦ããPECLã®JSON ã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã«æ¹æ³ãæå ã®ãã¹ãç°å¢ã§phpã®ãã¼ã¸ã§ã³ãupgradeãããã®ãé¢åããã ã£ãã®ã§PECLã§ã¤ã³ã¹ãã¼ã«ãã¾ããããã®ã¡ã¢ã§ããï¼å®ã¯PECL使ã£ãã®åãã¦ï¼ jsonã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã« sudo yum -y install php-pecl\* sudo yum -y install php-devel sudo pecl install json php.iniã®ç·¨é # ã³ã¡ã³ãã¢ã¦ãããã¦ãã£ããã³ã¡ã³ããåé¤ extension_dir = "/usr/lib/php/modules" # æ¨æºã§ãã¼ããã extension=json.so ä¸æ¸ããããhttpdãåèµ·åããã¨OKãjson_encode($array), json_decode($str)ã®é¢æ°ã
{{#tags}}- {{label}}
{{/tags}}