Multiple choice technology web technology

Which of followng statement is more suitable if you want to output a blend of static text and dynamic information stored within one or several variables?

  1. echo()

  2. print()

  3. Printf()

  4. none

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

printf() is most suitable for blending static text with dynamic variables because it supports formatted strings with placeholders (%s, %d, etc.). This makes complex string construction more readable than concatenation with echo() or print().