afs - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
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.
Result of php executing
Full code of afs.php
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="css/style.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css">
- <title>PHP веб сайт</title>
- </head>
- <body>
- <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">
- <h5 class="my-0 mr-md-auto font-weight-normal">internet magazin</h5>
- <nav class="my-2 my-md-0 mr-md-3">
- <a class="p-2 text-dark" href="#">главная</a>
- <a class="p-2 text-dark" href="#">контакты</a>
- </nav>
- <a class="btn btn-outline-primary" href="#">войти</a>
- </div>
- <div class="container">
- <h3 class="mb-5">Наши Статьи</h3>
- <?php
- for ($i = 0; $i < 5; $i++) {
- echo '<div class="card mb-4 shadow-sm">
- <div class="card-header">
- <h4 class="my-0 font-weight-normal">Free</h4>
- </div>
- <div class="card-body">
- <h1 class="card-title pricing-card-title">$0 <small class="text-muted">/ mo</small></h1>
- <ul class="list-unstyled mt-3 mb-4">
- <li>10 users included</li>
- <li>2 GB of storage</li>
- <li>Email support</li>
- <li>Help center access</li>
- </ul>
- <button type="button" class="btn btn-lg btn-block btn-outline-primary">Sign up for free</button>
- </div>
- </div>';
- }
- ?>
- </div>
- </body>
- </html>