Home > Backend Development > PHP Tutorial > How to print php information

How to print php information

WBOY
Release: 2016-07-29 09:02:20
Original
1400 people have browsed it

<code><span><span>function</span><span>console_log</span><span>(<span>$data</span>)</span>{</span><span>if</span> (is_array(<span>$data</span>) || is_object(<span>$data</span>)){
        <span>echo</span>(<span>"<script>console.log('"</span>.json_encode(<span>$data</span>).<span>"');</script>"</span>);
    } <span>else</span> {
        <span>echo</span>(<span>"<script>console.log('"</span>.<span>$data</span>.<span>"');</script>"</span>);
    }
} </code>
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the method of printing PHP information, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template