Posted by Jerry Stuckle on 04/16/07 11:29
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.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|