Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

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

Answer: d
Explanation: The str_pad() function pads a string with a specified number of characters.

Join The Discussion