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 Link to comment https://forums.phpfreaks.com/topic/121445-php-and-print/ 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!'; Link to comment https://forums.phpfreaks.com/topic/121445-php-and-print/#findComment-626253 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!"; Link to comment https://forums.phpfreaks.com/topic/121445-php-and-print/#findComment-626258 Share on other sites More sharing options...
Cosizzle Posted August 26, 2008 Share Posted August 26, 2008 oop! double quotes hehe thanks Link to comment https://forums.phpfreaks.com/topic/121445-php-and-print/#findComment-626261 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.