Apa fungsi dari strlen() dalam PHP?

Quiz string dalam php

Quiz
•
Computers
•
11th Grade
•
Easy
FIKA LAILA
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mengubah huruf dalam string menjadi huruf besar
Menghitung panjang sebuah string
Menghapus spasi di awal dan akhir string
Mengganti teks dalam string
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fungsi manakah yang digunakan untuk mengubah semua huruf dalam string menjadi huruf kecil?
strtoupper()
strtolower()
str_replace()
substr()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari kode berikut ini? php Salin kode $text = "Hello, World!"; echo strtoupper($text);
hello, world!
HELLO, WORLD!
Hello, World!
HELLO world!
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fungsi manakah yang digunakan untuk menghapus spasi di awal dan akhir string?
trim()
explode()
strlen()
strtolower()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa hasil dari kode berikut ini? php Salin kode $text = "Hello, PHP!"; echo substr($text, 7, 3);
PHP
Hello
, P
Hel
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
<?php
$text = " Mastering PHP is fun! ";
$result = strrev(trim(substr($text, 4, 10)));
echo $result;
?>
Apa output dari kode di atas?
GNIRETSA
GNIRET
GNIRETS
MASTERS
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Di dalam OOP, manakah yang benar tentang public $title; dalam kelas?
title hanya bisa diakses di dalam kelas.
title bisa diakses di dalam dan luar kelas.
title tidak bisa digunakan untuk menyimpan string.
title hanya bisa diubah di dalam metode.
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Dasar pemrograman PHP

Quiz
•
10th - 12th Grade
10 questions
Python Variables

Quiz
•
7th - 12th Grade
10 questions
Informatika Fase F - Karakter dan String

Quiz
•
11th Grade
15 questions
Quiz 142 - Python inputs and outputs

Quiz
•
9th Grade - University
15 questions
C# Structured, Selection and Iteration

Quiz
•
9th Grade - University
15 questions
XII RPL 1

Quiz
•
9th - 12th Grade
10 questions
PHP Dasar

Quiz
•
11th Grade
15 questions
Latihan Soal

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