You are here: Re: Functions for variables « PHP Programming Language « IT news, forums, messages
Re: Functions for variables

Posted by Oli Filth on 04/03/06 04:20

paladin.rithe@gmail.com said the following on 02/04/2006 20:57:
> Mainly because I have a bunch of variables that I want to be able to
> set via their respective functions.

Yes, but why?


> Mainly, it's an output system
> where each variable is a different id in the html. Via the
> XMLHttpRequest of JavaScript, when these are printed, they will be
> called as JavaScript Code via eval().

What do you mean "they will be called as Javascript code"? And why does
eval() come into it?


> While I can write functions that
> take care of all the variables, I thought it would be easier to just
> have one that does the same thing to all of them.

How is calling foo($val) any more useful than $foo = $val; ?


I think you will need to provide an example of what you're trying to do...



--
Oli

 

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

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