fdhdfgdf - 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 fdhdfgdf.php

  1. <?php 
  2. $a = [
  3.         'q',
  4.         'e',
  5.         'r',
  6.         't',
  7.         'y'
  8. ];
  9.  
  10. ?>
  11.  
  12. <div class="perfect-section-box">
  13. <?php 
  14. $i = 0;
  15. $pcount = count($a);
  16. foreach($a as $item): ?>
  17. <div class="perfect-block">
  18. <?= $item ?>
  19. </div>
  20.  
  21. <?php 
  22. $i++;
  23. if($i%2 == 0 && $pcount != $i)
  24.         echo '</div><div class="perfect-section-box">';
  25. endforeach; ?>
  26. </div>
  27.  
  28.  
File Description
  • fdhdfgdf
  • PHP Code
  • 04 Jan-2021
  • 311 Bytes
You can Share it: