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.
Result of php executing
Full code of https://stackoverflow.com/q/49898850/3578036.php
- <?php
- $sentence = 'DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD';
- $wrapped = wordwrap($sentence, 17, "\n", true);
- ?>
- <style>
- .rectangle {
- width: 200px;
- background: red;
- border: 1px solid #000;
- }
- </style>
- <div class="rectangle">
- <p><?= $wrapped; ?></p>
- </div>