أساسيات اللغة
$a="Ahmed";
$Ahmed = "Your Name" ;
الفصل الثاني
ويستخدم هذا الأسلوب عند ربط متغير بمتغير آخر مثل اسم الولوج وكلمة السر . في
الشكل التالي تجميع تلك الأمثلة :
Davor's PHP Editor - Project 1 (changed!)
File Edit View Bun Tools: Help
Project Files > p005.PHP Capache\htdocs\p005 PHP [changed!)
File Browser
c: [ahmed]
File mask
ACROREAD
apache
AutoFish
AutoMenu
CDAWIN3
Synton Highlighting PHP
<?php
2 $a-3;
$a +-5;
echo "<br> variable new value $a";
5 Sb "My First ";
b. "Programming For web developer by PHP";
% echo "<br> variable b will be = $b ";
$d="ahmed";
$$d
"Your Name";
Downloads gst-autollash-bu
10 echo "<br> variable d will equal
$$d";
echo "<br> this means that variable d return to fahmed";
12 echo "<br> equal to $ahmed";
Line: 14 Col 1
وفي الشكل التالى ناتج تنفيذ المثال على المستعرض :
http://localhost/p005 - Microsoft Internet Expl SEX Erle Edit View Favorites Tools Help
Back
Refresh Home Search
Addresse http://localhost/p005
Go Links
variable new value = 8
variable b will be My First Programming For web developer by PHP
variable d will equal = $ahmed
this means that variable d return to Your Name
equal to Your Name
Done
Local intranet
العوامل Operators والعمليات الرياضية
لتنفيذ عمليات حسابية مثل الجمع والطرح على متغير $ ومتغير y$ ووضع الناتج
٥٥
ص ٥٥