переменные и условия - 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: переменные и условия fullscreencopydownloadembedprint


Your result can be seen below.

Result of php executing





Full code of переменные и условия.php

  1. <?php
  2.  
  3. $my_variable = 100;  //интеджер
  4. $_c = 33.4546; // float дробная
  5. $_array = array(1,2,3,4,5);// массив
  6.  
  7. $_array_ = array(
  8.                 'qwerwqer',
  9.                 'qwergvqsfgwdsfg',
  10.                 'name',
  11.                 "123421"); 
  12.  
  13.  $_array_2 = array(
  14.                     'name' =>'me',
  15.                     'surname' => 'not me',
  16.                     'qwe'=>'1234234234');               
  17.  
  18. $j = false;
  19.  
  20. $a = 'текстовый текст';
  21.  
  22. if ($my_variable == 100 and $_c >= 33.4546)
  23.     {
  24.         echo $_c * 22+2222222;
  25.     }else
  26.     {
  27.         echo 'иначе';   
  28.     }
  29.     
File Description
  • переменные и условия
  • PHP Code
  • 30 Aug-2023
  • 609 Bytes
You can Share it: