You are here: How to get the source code of a method/function call? « PHP Programming Language « IT news, forums, messages
How to get the source code of a method/function call?

Posted by seaside on 12/16/06 23:23

Currently, I use this call

traceVariable( $_SERVER['PHP_SELF'], '$_SERVER["PHP_SELF"]' );

to pass a variable by reference to 'traceVariable' and by value a
description string.

Since the description string is very likely to be identical to the
source code (string) of the first parameter, I'd like to write this:

traceVariable( $_SERVER['PHP_SELF'] );

Any ideas, how to get the literal expression (source) of a parameter,
which got passed to a method/function?

 

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

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