Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of var_dump without formatting in php

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces php var_dump is not formatted how to solve the related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe everyone read this php var_dump is not formatted how to solve the article will be harvested, let's take a look at it.

Methods: 1. Use "phpinfo()" to obtain the "php.ini" path of the Loaded Configuration File item;2. Modify the contents of the "html_errors" item in the "php.ini" file according to the path, and change Off to On;3. Restart Apache.

Operating environment: Windows 10, PHP 7.1, Dell G3

var_dump is not formatted in php

The reason why the output is not formatted is because of a problem with php.ini settings. Use phpinfo() function to see that html_errors is set to Off.

This item needs to be set to on to format var_dump.

Methods:

1. Use "phpinfo()"

Get the file path for php.ini

Loaded Configuration File

The red box is the path to php.ini.

2, Modify php.ini file content

At this time, I think that there is a problem with the configuration of some output in php.ini, print phpinfo() to check the configuration one by one, and finally find php configuration items.

html_errors is Off

Change the html_errors value to On

Restart Apache

problem solving

About "php var_dump format is not how to solve" the content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of the knowledge of "var_dump in php is not formatted how to solve". If you still want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report