Which constant must be passed as the second argument to htmlentities() to convert single quotes (') to HTML entities?
Suggested Answer: C
Get Premium 200-710 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
18 comments · newest first
FR
Frederick
3 days ago
I remember learning that in PHP class.
KI
Kimberely
8 days ago
Yeah, that makes sense! It converts both quotes.
AN
Antonio
13 days ago
I think it's C) ENT_QUOTES.
MI
Mickie
18 days ago
C) ENT_QUOTES is the best option for safety.
VI
Vince
23 days ago
B) FALSE doesn't make sense here.
BE
Bernadine
28 days ago
Definitely not A. C is the right choice.
QU
Queenie
1 month ago
I feel like A) TRUE is misleading.
MA
Macy
1 month ago
Agreed! It converts both single and double quotes.
VO
Vonda
1 month ago
I think it's C) ENT_QUOTES.
JA
Jaime
2 months ago
I thought ENT_COMPAT was the right one for some reason.
BR
Brandon
2 months ago
I always mix those up, but I think it's definitely ENT_QUOTES.
JA
Jamal
2 months ago
Wait, are you sure? I thought it was ENT_NOQUOTES.
JO
Johana
2 months ago
Totally agree with Roosevelt!
RO
Roosevelt
2 months ago
It's C) ENT_QUOTES for sure!
PA
Paris
2 months ago
I’m leaning towards ENT_COMPAT, but I could be mixing it up with another question about handling quotes.
AI
Aimee
3 months ago
I’m a bit confused. I remember there are different constants, but I can’t recall which one specifically handles single quotes.
MA
Malinda
3 months ago
I feel like I've seen a question like this before, and I think the answer was C) ENT_QUOTES.
MI
Milly
3 months ago
I think it might be ENT_QUOTES, but I'm not entirely sure. I remember something about quotes in HTML entities.