إعلانيمكن أن تكون علامتك التجارية هناعلامتك التجارية هنافي كل صفحة من Darslab · طلاب وأولياء أمور ومعلمونinfo@darslab.comاسأل عن الأسعارالأسعارinfo@darslab.com
☰ خطة العام · تكنولوجيا المعلومات والاتصالات (بالإنجليزية)

PHP basics: echo, variables and constants

الأسبوع 10 · الوحدة ٣ «إنشاء صفحات الموقع» (٣) الموضوع الأول (تابع): كود PHP في الصفحة، echo وprint، التعليقات، المتغيرات وعلامات الاقتباس والأنواع، الثوابت · 3 دروس
Answers are for parents and teachers.
1
Write a PHP block that stores your favourite book title in a variable and prints: My book is …, using double quotes.
2
What do these print? (a) $x = 2; $x = $x + 3; echo $x; (b) echo gettype("7");
3
Find the three mistakes: <? php $name = "Omar" echo 'Hello $name'; ?>
4
Why is the pass mark of a school better as a constant than as a variable?
5
What would the visitor see if a PHP block contained only a comment?