You are here: Re: can I use create_function to create enclosures? « PHP Programming Language « IT news, forums, messages
Re: can I use create_function to create enclosures?

Posted by lawrence k on 04/16/07 16:47

On Apr 16, 7:29 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> lawrence k wrote:
> > Just noticed this for the first time:
>
> >http://us2.php.net/manual/en/function.create-function.php
>
> > Anyone know if PHP supports enclosures, like Javascript or Ruby? I've
> > always assumed PHP lacked these. If I create a function with object
> > instances, will the instances retain their state if the function
> > definition is stored in a variable?
>
> PHP runs server side. It has no idea what client-side languages such as
> Javascript are.
>
> PHP outputs HTML - and can output client side code such as Javascript,
> but to PHP it's just text being output.

You misunderstood the question. I was asking "Does PHP support
closures?" That was the question. I like using closures in languages
such as Ruby and Javascript. I was wondering if there was any way to
do so in PHP. I'm assuming the answer is no.

 

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

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