https://stackoverflow.com/q/49898850/3578036 - 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.

Name: https://stackoverflow.com/q/49898850/3578036 fullscreencopydownloadembedprint


Your result can be seen below.

Result of php executing





Full code of https://stackoverflow.com/q/49898850/3578036.php

  1. <?php
  2. $sentence = 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD';
  3. $wrapped = wordwrap($sentence, 17, "\n", true);
  4. ?>
  5. <style>
  6.     .rectangle {
  7.         width: 200px;
  8.         background: red;
  9.         border: 1px solid #000;
  10.     }
  11. </style>
  12. <div class="rectangle">
  13.     <p><?= $wrapped; ?></p>
  14. </div>
File Description
  • https://stackoverflow.com/q/49898850/3578036
  • PHP Code
  • 12 Oct-2018
  • 334 Bytes
You can Share it: