<\/span><\/h3>\n\n\n\nStarting with PHP 8.2, libmysql support has been removed. PHP historically supported two libraries to connect to MySQL databases: mysqlnd<\/strong><\/code> and libmysql<\/strong><\/code>. As of PHP 5.4, mysqlnd<\/strong><\/code> became the recommended library. With PHP 8.2, libmysql<\/strong><\/code> has been removed, and users are required to use the mysqlnd<\/strong><\/code> library for connecting to MySQL databases.<\/p>\n\n\n\n<\/span>Sort Order Changes for the ksort Function<\/span><\/h3>\n\n\n\nPHP 8.2 introduces a bug fix for the ksort<\/strong><\/code> function, making the output of the SORT_REGULAR<\/strong><\/code> parameter consistent with other parameters. Prior to PHP 8.2, it prioritized alphabetic keys before numeric keys, but now ksort<\/strong><\/code> will place numeric keys before alphabetic keys when sorting.<\/p>\n\n\n\n<\/span>The str_split Function Returns Empty Arrays for Empty Strings<\/span><\/h3>\n\n\n\nPHP 8.2 addresses a bug in the str_split<\/strong><\/code> function. Previously, when given an empty string, it would return an empty string. In PHP 8.2, it will return an empty array when provided with an empty string.<\/p>\n\n\n\n<\/span>How to Change the PHP Version<\/span><\/h2>\n\n\n\nMost hosting providers offer an easy way to switch between PHP versions. If you\u2019re using Sitebuilder.live's control panel, follow these steps:<\/p>\n\n\n\n
\n- Log in to your Sitebuilder.live account.<\/li>\n\n\n\n
- Select your hosting plan.<\/li>\n\n\n\n
- Search for \"PHP Configuration\" in the control panel.<\/li>\n\n\n\n
- You will find a list of the latest stable PHP versions. Select your preferred version and click \"Update\" to save the changes.<\/li>\n<\/ol>\n\n\n\n
Within this utility, you can also manage PHP extensions and options for each PHP version individually.<\/p>\n\n\n\n
<\/span>Conclusion<\/span><\/h2>\n\n\n\nPHP 8.2 brings a host of improvements over previous versions, introducing new features like readonly classes, deprecating complex syntax in outdated implementations, and fixing critical bugs to enhance the development workflow. We hope this overview has helped you prepare for the PHP 8.2 release that is already available on Sitebuilder.live!<\/p>\n","protected":false},"excerpt":{"rendered":"
PHP 8.2 is just around the corner, scheduled for release on December 8th. It's a release aimed at simplifying the lives of developers by streamlining the coding process and deprecating older functions. Upgrading to the latest PHP version is highly recommended not only for enhanced site security but also for getting accustomed to the new […]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[6],"tags":[],"post_meta_fields":{"_edit_lock":["1693814873:1"],"rank_math_seo_score":["13"],"rank_math_title":["What\u2019s New in PHP 8.2: New Features, Deprecations, and Bug Fixes - Sitebuilder.live"],"rank_math_description":["Meta Description: PHP 8.2 is on the horizon, set to launch on December 8th. Explore the latest features, deprecations, and bug fixes in PHP 8.2 to decide if it's the right choice for your website development, all on Sitebuilder.live."],"rank_math_internal_links_processed":["1"],"_edit_last":["1"],"ct_other_template":["0"],"ct_template_archive_post_types_all":[""],"ct_template_categories":["a:0:{}"],"ct_template_categories_all":[""],"ct_template_tags":["a:0:{}"],"ct_template_tags_all":[""],"ct_template_custom_taxonomies":["a:0:{}"],"ct_template_custom_taxonomies_all":[""],"ct_template_authors_archives_all":[""],"ct_template_index":[""],"ct_template_front_page":[""],"ct_template_blog_posts":[""],"ct_template_date_archive":[""],"ct_template_search_page":[""],"ct_template_inner_content":[""],"ct_template_404_page":[""],"ct_template_all_archives":[""],"ct_template_archive_among_taxonomies":["a:0:{}"],"ct_template_apply_if_archive_among_taxonomies":[""],"ct_template_archive_post_types":["a:0:{}"],"ct_template_apply_if_archive_among_cpt":[""],"ct_template_authors_archives":["a:0:{}"],"ct_template_apply_if_archive_among_authors":[""],"ct_template_single_all":[""],"ct_template_post_types":["a:0:{}"],"ct_template_exclude_ids":[""],"ct_template_include_ids":[""],"ct_template_taxonomies":["a:2:{s:5:\"names\";a:0:{}s:6:\"values\";a:0:{}}"],"ct_use_template_taxonomies":[""],"ct_template_post_of_parents":["a:0:{}"],"ct_template_apply_if_post_of_parents":[""],"ct_template_order":["0"],"ct_builder_shortcodes":[""],"oxygen_lock_post_edit_mode":[""],"rank_math_analytic_object_id":["45"],"footnotes":[""],"rank_math_primary_category":["6"],"_thumbnail_id":["215"]},"_links":{"self":[{"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/posts\/211"}],"collection":[{"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":3,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":217,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/posts\/211\/revisions\/217"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitebuilder.live\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}