You are here: Re: print out variable name as well as its content « PHP Programming Language « IT news, forums, messages
Re: print out variable name as well as its content

Posted by Rik Wasmus on 10/19/07 01:05

On Fri, 19 Oct 2007 02:58:56 +0200, Summercool <Summercoolness@gmail.com>
wrote:

> On Oct 18, 5:46 pm, Gary L. Burnore <gburn...@databasix.com> wrote:
>
>> > echo '$obj->arr[n*size][i-1]' . $obj->arr[n*size][i-1];
>>
>> >so you have to make sure both places are indeed the same expression --
>>
>> If that's too hard for you, perhaps you should consider a job in the
>> food or hospitality industry.
>
> so if PHP or people who are proficient in PHP cannot give a good
> solution to this simple thing, i wonder who should work in the food or
> hospitality industry.

What is the actual 'simple' thing you're trying to solve, as I cannot see
any practical use in production for your proposed feature. Even for
debugging I'd rather know the file/line (which is easily retrievable) then
the variable name, as it sais so much more. Any normal production code
wouldn't need it at all as it should check variables, and on a fail rather
throw errors or exceptions then your debug info.
--
Rik Wasmus

 

Navigation:

[Reply to this 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

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