Write a program to print a string using echo+variable.
Write a program to print “Welcome to the PHP World” using some part of the text in variable & some part directly in echo.
- You have to use a variable that contains string “PHP World”.
Click to View Solution/Program
Program to print a string using variable & echo
$text = "PHP World";
echo "Welcome to the $text";
Learn more about the similar topics?