Single Choice Not Set

QWhat will be the output of the following PHP code?
< ?php 
   echo str_pad("Salad", 5)." is good.";
?>

ID: #2398 PHP String and Regular Expression 565 views
Question Info
#2398Q ID
Not SetDifficulty
PHP String and Regular ExpressionTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A SaladSaladSaladSaladSalad is good
  • B is good SaladSaladSaladSaladSalad
  • C is good Salad
  • D Salad is good
Correct Answer

Explanation

The str_pad() function pads a string with a specified number of characters.

Share This Question

Challenge a friend or share with your study group.