0
$t ='<span style=\"color:#FF0000;\"> ';
$t. "texto '</span>' ";
echo $t;
The code above does not work, nothing is printed.
I believe the problem is the closure of tag
span
.
How to solve?
0
$t ='<span style=\"color:#FF0000;\"> ';
$t. "texto '</span>' ";
echo $t;
The code above does not work, nothing is printed.
I believe the problem is the closure of tag
span
.
How to solve?
1
There are some mistakes, but the basics would be:
$t ='<span style="color:#FF0000;"> ';
$t .= "texto </span> ";
echo $t;
Browser other questions tagged php html string tags
You are not signed in. Login or sign up in order to post.
Thanks Virgilio. it worked out now.
– Sidney Roberto