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

  1. <?php
  2.     echo 'Всем ','привет ','от ','PHP!'
  3.  
  4.  
  5. ?>
  6. <!--Для вывода слов на разных строках мы используем элемент "br", т.е резерв строки-->
  7. <!--Переменные выводимые оператаром echo перечисляются через запятую--> 
  8.  
  9.     echo 'Всем<br>','привет<br>','от<br>','PHP!<br><br>';
  10.  
  11. ?>
  12. <!--После каждой инструкции мы будем ставить точку с запятой даже, если иснструкция является последней в блоке php-кода--> 
  13.  
  14.  
File Description
  • nani
  • PHP Code
  • 19 Dec-2022
  • 632 Bytes
You can Share it: