_ REQUEST
$ _GET, $ _POST, $ _COOKIE. PHP 4.1 $ _FILES.
$ _ SESSION (. $ HTTP_SESSION_VARS)
.-,.
PHP class. (public,), (protected) (private). PHP -, (extends). (Implements). ,. ,. parent.
5.4.0 (. trait). (. Mixins),.... .
PHP (. magic methods),. (__construct (), 5.0,) (__destruct ()), (__get ()) (__set ()), (__sleep ()) (__wake ()), (__clone ()). :, [13].
new, - gt ;. $ this.
C1 extends C2 implements I1, I2
{$ a; $ b; __ construct ($ a, $ b)
{:: __construct ($ a, $ b);
$ this- gt; a=$ a;
$ this- gt; b=$ b;
} function plus ()
{$ this- gt; a + $ this- gt; b;
}
/* .... */
}
$ d=new C1 (1,2); $ d- gt; plus ();// 3
PHP,: a
{$ color= red raquo ;;
}
$ a=new a (); $ a - gt; color;// Red
$ b=$ a;
$ b - gt; color= blue raquo ;; $ a - gt; color;// Blue
Paamayim Nekudotayim raquo ;. ,,. ,. Paamayim Nekudotayim . , Zend Engine 0.5 (PHP3), Andi Zeev. Paamayim Nekudotayim . PHP.
lt ;? phpMyClass {CONST_VALUE= raquo ;;
}
//:: MyClass :: CONST_VALUE;
? gt;
2.4.3 JavaScript
JavaScript - -. ECMAScript..-.
:,,,.
JavaScript, Java,. JavaScript -,, -.
JavaScript Oracle Corporation.-, -. , JavaScript, -,,,, -.
, JavaScript:
·,;
·;
·;
·;
·.
,:
·: JavaScript;
·:,, /,;
· -;
·,.
.
JavaScript Java, Self, Smalltalk.
JavaScript:
·,
·,,,
·,
· //,/* * /.
.
JavaScript:
· (ECMAScript),
· (Browser Object Model BOM ( de lt; # justify gt; JavaScript,.
JavaScript, DOM. BOM DOM.
.
JavaScript -.
· PHP HTML_Javascript, JavaScript-.
· TCL :: javascript. HTML JavaScript.
· Perl Data :: JavaScript Perl JavaScript-.
.
JavaScript. Internet Explorer, Mozilla Firefox, Safari, Google Chrome, Opera ECMA - 262. Mozilla Firefox,, 3.1, Internet Explorer 8.
,,. 2 009.
, Internet Explorer Microsoft JavaScript,, JavaScript 3D-, JavaScript, Adobe Flash.
Web, - raquo ;. ,. 1995 Netscape, JavaScript.
, JavaScript - Web.
JavaScript HTML- HTML -. [14].
,,,.
. , HTML- -,:
·;
·;
·.
.-,,,, HTML.-..
,.-.. ,,.
HTML-. , Lt; A. gt ;. lt;/A gt; HREF,:
lt; A HREF=intuit. htm gt; intuit lt;/A gt;
lt; A. gt ;. lt;/A gt; , HREF raquo ;. ,,:. links [0]. href= intuit. htm raquo ;;
. ,. ,,. , Microsoft Internet Explorer.
JavaScript, HTML-. ,, Navigator,, JavaScript.
JavaScript. , Laquo; open (), write (), close ().
.
:
hello ()
{id=window. open ( , example , width=400, height=150 ) ;. focus (); id. document. open () ;. document. write ( lt; H1 gt ;! lt;/H1 gt; ) ;. document. write ( lt; HR gt; lt; FORM gt; ) ;. document. write ( lt; INPUT TYPE=button VALUE= ) ;. document. write ( onClick= window. opener. focus (); window. close (); gt; ) ;. document. close ();
}