Can I use Functional Pointer? / Javascript bracelet conflict ?
[email protected] (Lin Zhemin)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, all!
I've been using PHP3 for about one year, but I've some
simple yes/no questions about PHP:
1. Can I use Functional Pointer (a pointer that refers to a function) ?
This would be a basic to polymorphism (since OOP isn't highly
supported in PHP3). If yes, how can I ?
2. When will PHP fully support PHP (i.e. a derivable constructor,
an automatically called destructor, real polymorphism, etc.) ?
3. I've got a tiny problem when trying to make cooperate Javascript and
PHP:
if I have a tag in a form (name=f)
<input type=text name=field[0] value="">
PHP can inteprete it correctly (as a feature written in the manual,
bien sur!) But I cannot manipulate it with Javascript
document.f.field[0].value = "something";
since it will be treate like a JavaScript array. Now I use some
trick like
document.f.elements[0].value = "something";
but I find it really boring. Is there a better solution?
Thanks for response and read. :-)
--
¥Í¦º«´Áï¡A»P¤l¦¨»¡¡F°õ¤l¤§¤â¡A»P¤l°º¦Ñ¡C
Fingerprint20 = CE32 D237 02C0 FE31 FEA9 B858 DE8F AE2D D810 F2D9