Reply to how to suggest a new function?

Your name:

Reply:


Posted by Adam Scheinberg on 12/04/06 01:32

Hello all,

This is my first post and I'm wondering if someone can point me in the
right direction. I have seen the following code MANY times in programs
and throughout the internet:

<?php
echo '<pre>';
print_r($array);
echo '</pre>';
?>

As a result, I often create a function called print_r_pre() in my code
to mimic this during development, which is highly useful in
interpreting large arrays. It seems, though, that when using
print_r(), mostly people would *usually* want this behavior (and not
just in the source code).

I would like to suggest to develpers one of three things:

1. Most desirable: the introduction of a new function, print_r_pre()
which takes the same arguments as print_r().
2. Secondly: add a third argument to print_r(), which allows you to use
print_r($array,0,1) or somesuch.
or
3. The least desirable: change the default behavior of this function to
spit <pre> tags

My problem is, I'm not sure how to do this - do I do this on the
internals mailing list? The general php list?

Can anyone point me in the right direction?

A

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация