php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48970 A new function for displaying array
Submitted: 2009-07-18 19:37 UTC Modified: 2010-11-24 15:24 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: SaharshTibrewal at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.0 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: SaharshTibrewal at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-18 19:37 UTC] SaharshTibrewal at gmail dot com
Description:
------------
This is a short enhancement of print_r

Reproduce code:
---------------
---
From manual page: internals2.ze3
---
<?PHP
function print_pre($array)
{
echo "<PRE>";
echo print_r($array);
echo "</PRE>";
}
?>

Expected result:
----------------
This will show the array in a formatted way


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 15:24 UTC] jani@php.net
-Package: Feature/Change Request +Package: *General Issues -Operating System: Does it matter? +Operating System: *
 [2010-11-24 15:24 UTC] jani@php.net
-Status: Open +Status: Bogus
 [2010-11-24 15:24 UTC] jani@php.net
Easy to do yourself, and having any format you want. :)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 22:01:35 2025 UTC