adplus-dvertising
frame-decoration

Question

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

a.

SaladSaladSaladSaladSalad is good

b.

is good SaladSaladSaladSaladSalad

c.

is good Salad

d.

Salad is good

Posted under PHP

Answer: (d).Salad is good

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following PHP code?

Similar Questions

Discover Related MCQs