apw Posted August 26, 2008 Share Posted August 26, 2008 Hello im working with php and the print ""; to display text such as the following: print "welcome warrior, $player to the game!"; that displays fine, however when i post the contents into my html editor the output screen displays the print ""; could i get away with just straight text doing away with the print and the necessary content show correctly or does php must use the print ""; to display the text Quote Link to comment Share on other sites More sharing options...
Cosizzle Posted August 26, 2008 Share Posted August 26, 2008 try an echo echo 'welcome warrior, $player to the game!'; Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted August 26, 2008 Share Posted August 26, 2008 try an echo echo 'welcome warrior, $player to the game!'; I'm not sure apw wanted the variable. Here's one in case your way isn't what he wanted. echo "welcome warrior, $player to the game!"; Quote Link to comment Share on other sites More sharing options...
Cosizzle Posted August 26, 2008 Share Posted August 26, 2008 oop! double quotes hehe thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.