afs - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of afs.php

  1. <!DOCTYPE html>
  2. <html lang="ru">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <link rel="stylesheet" href="css/style.css">
  8. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
  9. <title>PHP веб сайт</title>
  10. </head>
  11. <body>
  12. <div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom box-shadow">
  13. <h5 class="my-0 mr-md-auto font-weight-normal">internet magazin</h5>
  14. <nav class="my-2 my-md-0 mr-md-3">
  15. <a class="p-2 text-dark" href="#">главная</a>
  16. <a class="p-2 text-dark" href="#">контакты</a>
  17. </nav>
  18. <a class="btn btn-outline-primary" href="#">войти</a>
  19. </div>
  20. <div class="container">
  21. <h3 class="mb-5">Наши Статьи</h3>
  22.  
  23. <?php
  24. for ($i = 0; $i < 5; $i++) {
  25. echo '<div class="card mb-4 shadow-sm">
  26. <div class="card-header">
  27. <h4 class="my-0 font-weight-normal">Free</h4>
  28. </div>
  29. <div class="card-body">
  30. <h1 class="card-title pricing-card-title">$0 <small class="text-muted">/ mo</small></h1>
  31. <ul class="list-unstyled mt-3 mb-4">
  32. <li>10 users included</li>
  33. <li>2 GB of storage</li>
  34. <li>Email support</li>
  35. <li>Help center access</li>
  36. </ul>
  37. <button type="button" class="btn btn-lg btn-block btn-outline-primary">Sign up for free</button>
  38. </div>
  39. </div>';
  40. }
  41. ?>
  42. </div>
  43. </body>
  44. </html>
  45.  
File Description
  • afs
  • PHP Code
  • 30 Sep-2023
  • 1.42 Kb
You can Share it: