The Candy Store - 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.
Result of php executing
Full code of The Candy Store.php
- <?php
- $name = 'Patrick';
- $price = 5;
- ?>
- <!doctype html>
- <html>
- <head>
- <title>variables</title>
- </head>
- <h1>The Candy Store</h1>
- <h2>Welcome <?php echo $name; ?></h2>
- <p>The cost of your candy is
- $<?php echo $price; ?> per pack.</p>
- </body>
- </html>
File Description
- The Candy Store
- PHP Code
- 23 May-2022
- 259 Bytes
You can Share it:
Latest PHP Pastes