What is the result of this PHP code: echo strtr("abc", "abc", "123");

Web Programming

Quiz
•
Instructional Technology
•
University
•
Hard
Julius Codilan
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
abc
123
132
a1b2c3
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Function to split string using regex?
preg_split()
preg_regex()
preg()
split()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will str_repeat("PHP", 3); return?
PHP
PHP PHP PHP
PHP3
PHPPHPPHP
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function finds the last occurrence of a substring in a string?
substr()
strpos()
strrpos()
strlastpos()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
$str = "hello world"; echo substr($str, -5, 3);
wor
rld
llo
orl
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of heredoc syntax in PHP?
Error handling
Embedding variables in strings easily
Faster looping
Importing files
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is guaranteed to run at least once?
For
Foreach
While
do...While
Create a free account and access millions of resources
Similar Resources on Quizizz
35 questions
BSCS 4-1 - Elective 4 - Midterm Examination - 2023

Quiz
•
University
28 questions
jig fixture_2

Quiz
•
University
25 questions
Unit 2: The World Wide Web and the Internet

Quiz
•
University
25 questions
PT1 Chapter 4-5

Quiz
•
University
25 questions
Computer Hardware Quiz

Quiz
•
7th Grade - University
26 questions
Aplicaciones WEB

Quiz
•
University
30 questions
AD-Q004

Quiz
•
University
29 questions
CIW IBA Lesson 1 Vocabulary

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade