Apa fungsi dari echo dalam PHP?

latihan PHP tahap 2

Quiz
•
Computers
•
11th Grade
•
Medium
Fajar Nugraha
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
2.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Fungsi dari foreach ($data as $row) dalam kode tersebut adalah…
Melakukan iterasi pada setiap elemen array $data
Menampilkan semua data dalam satu baris
Membuat array baru berdasarkan $data
Memfilter data yang ditampilkan
3.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Apa hasil dari kode berikut?
$nama = "Budi"; echo "Selamat datang, $nama!";
4.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Fungsi date("Y") dalam PHP akan menampilkan…
5.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Apa output dari kode berikut jika hari ini adalah Senin?
echo "Hari ini adalah " . date("l");
6.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Bagaimana cara mengubah kode agar nilai A diberikan untuk skor 85 ke atas?
Mengubah if ($skor >= 90) menjadi if ($skor >= 85)
Mengubah elseif ($skor >= 75) menjadi elseif ($skor >= 85)
Menambah elseif ($skor >= 85) { echo "Nilai Anda A"; }
Menghapus kondisi elseif ($skor >= 75)
7.
MULTIPLE CHOICE QUESTION
45 sec • 4 pts
Bagaimana menampilkan waktu saat ini dalam format HH:MM:SS?
echo time();
echo date("H:i:s");
echo now();
echo datetime();
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
PEMR. DASAR

Quiz
•
11th Grade
20 questions
UAS Struktur Data 2022

Quiz
•
University
20 questions
ULANGAN BASIS DATA

Quiz
•
11th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
20 questions
Pretest C++

Quiz
•
11th Grade
20 questions
PTS PHP OOP Dasar Adi W

Quiz
•
9th - 12th Grade
20 questions
Fase F - Array

Quiz
•
11th Grade
22 questions
PTS Semester Ganjil

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University