لغة PHP — الصفحة ١٣٩

الدوال Functions function foo() { static $a; $a++; echo "$a\n"; unset($a); } foo(); foo(); foo(); الفصل الرابع أمثلة أخرى : نتيجة المثال السابق ستكون : طباعة 123 على الشاشة مثال للمتغيرات الخارجية : =="; <HTML> <TITLE> HTML FORMS </TITLE> <BODY> <H2> GET AND POST METHOD </H2> <?php // Variables from outside PHP // HTML Forms (GET and POST) // Example More complex form variables Echo "This Example is More complex form variables"; Echo "<BR>==== Echo "<BR> Example HTML Forms (GET and POST)"; ?> <form action="array.php" method="post"> Name: <input type="text" name="personal[name]"><br> Email: <input type="text" name="personal[email]"><br> Beer: <br> <select multiple name="beer[]"> <option value="ahmed">Ahmed <option value="mohamed">Mohamed <option value="kareem">Kareem </select> <input type="submit"> ۱۳۹
ص ١٣٩

النص مستخرج آليًّا من صور الكتاب، وقد يقع فيه خطأ.