{"id":416,"date":"2021-09-27T19:41:29","date_gmt":"2021-09-27T10:41:29","guid":{"rendered":"https:\/\/centos.ihavenomoney.co.kr\/?p=416"},"modified":"2021-09-27T19:42:16","modified_gmt":"2021-09-27T10:42:16","slug":"deprecated-array-and-string-offset-access-syntax-with-curly-braces-is-deprecated-in-www-lib-functions-php-on-line-548","status":"publish","type":"post","link":"https:\/\/centos.ihavenomoney.co.kr\/?p=416","title":{"rendered":"Deprecated: Array and string offset access syntax with curly braces is deprecated in \/www\/lib\/functions.php on line 548"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">since PHP 7.4 curly braces method to get individual characters inside a string has been deprecated, so change the above syntax into this:<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:php decode:true \"> $array = array();\n\n                 $i = 0;\n\n                 while ($i &lt; $len)\n                 {\n                         $key = NULL;\n\n                         for ($j = 0; $j &lt; $split; $j += 1)\n                         {\n                                 $key .= $text{$i};\n\n                                 $i += 1;\n                         }\n\n                         $array[] = $key;\n                 }\n\n                 return $array;\n<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Modify<\/h3>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">$key .= $text[$i]; \/\/ modify<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>since PHP 7.4 curly braces method to get individual characters inside a string has been deprecated, so change the above syntax into this: Modify<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-416","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=416"}],"version-history":[{"count":2,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":418,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions\/418"}],"wp:attachment":[{"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/centos.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}