Jump to content

adding html to this line of code


webguync

Recommended Posts

You can also just put the variable in without breaking out of the string.  The I have { } around it is because it's an associative array and has single quotes which will throw an error without them.

 

echo "Welcome! You are now logged in {$_SESSION['username']}";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.