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 Michael Fesser on 10/19/07 01:41

..oO(Summercool)

>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

Simple? This:

$obj->arr[n*size][i-1]

is not a simple variable name - it's a complex expression! If you pass
that to the function, all the function receives is the result of that
expression, not its source code. If you want that - add it yourself as a
second parameter.

Micha

 

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

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