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 Summercool on 10/19/07 00:31

On Oct 18, 5:20 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:

> If you want the variable's name, just say it!
>
> echo '$foo=' . $foo;

sometimes it is more like

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 --
no inconsistency between the two of them. so it would be handy to
just use

print_debug($obj->arr[n*size][i-1]);

and no need to check consistency all the time.

 

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

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