Advertisement
webrur

Class 1 - PHP basic

Apr 25th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Document</title>
  6. </head>
  7. <body>
  8.  
  9. <?php
  10. $beautiful = 'rajshahi';
  11. $beautiful_2 = 'sylhet';
  12.  
  13. $cities = array('dhaka', 'rajshahi', 'sylhet',);
  14. ?>
  15.  
  16. <?php
  17. if($beautiful == $beautiful_2) {
  18. echo '<<h1>Most beautiful city is '.$beautiful.'</h1>'
  19. } else {
  20. echo '<h1>We don\'t know</h1>'
  21. }
  22.  
  23.  
  24.  
  25. ?>
  26.  
  27. </body>
  28. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement