Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2.  
  3. $text1 = "text1";
  4. $text2 = "text2";
  5. $text3 = "text3";
  6.  
  7. echo "
  8. <table>
  9. <tr>
  10. <td>$text1</td>
  11. <td>$text2</td>
  12. <td>$text3</td>
  13. </tr>
  14. </table>
  15.  
  16. <div class='sample' id='sample'>Sample with class and id</div>
  17. <div style='background:red; border:1px solid #000000;'>Sample with css</div>
  18. ";
  19.  
  20. ?>
  21.  
  22. or
  23.  
  24. <?php
  25.  
  26. $text1 = "text1";
  27. $text2 = "text2";
  28. $text3 = "text3";
  29. $html_content = "
  30. <table>
  31. <tr>
  32. <td>$text1</td>
  33. <td>$text2</td>
  34. <td>$text3</td>
  35. </tr>
  36. </table>
  37.  
  38. <div class='sample' id='sample'>Sample with class and id</div>
  39. <div style='background:red; border:1px solid #000000;'>Sample with css</div>
  40. ";
  41.  
  42.  
  43. echo $html_content;
  44.  
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement