2018-10-12 20:35:31 +00:00
---
title: Basic Syntax
localeTitle: بناء الجملة الأساسي
---
# بناء الجملة الأساسي
يمكن وضع نص PHP في أي مكان بالوثيقة.
يبدأ البرنامج النصي لـ PHP `<?php` وينتهي بـ `?>`
أدناه ، لدينا مثال لملف PHP بسيط ، مع برنامج نصي PHP الذي يستخدم دالة PHP مدمجة "echo" لإخراج النص "Hello World!" على صفحة الويب
\`\` \`\`
# أول صفحة PHP
2019-06-20 21:59:02 +00:00
```
The output of that would be :
```
2018-10-12 20:35:31 +00:00
أول صفحة PHP
مرحبا بالعالم!
2019-06-20 21:59:02 +00:00
```
#### Note: PHP statements end with a semicolon (;).
# Comments in PHP
PHP supports several ways of commenting:
```
2018-10-12 20:35:31 +00:00
`# PHP Case Sensitivity
In PHP, all keywords (eg if, else, while, echo, etc.), classes, functions, and user-defined functions are NOT case-sensitive.
In the example below, all three echo statements below are legal (and equal):
`
2019-06-20 21:59:02 +00:00
```
### However; all variable names are case-sensitive.
In the example below, only the first statement will display the value of the $color variable (this is because $color, $COLOR, and $coLOR are treated as three different variables):
```
2018-10-12 20:35:31 +00:00
\`\` \`\`