переменные и условия - 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 переменные и условия.php
- <?php
- $my_variable = 100; //интеджер
- $_c = 33.4546; // float дробная
- $_array = array(1,2,3,4,5);// массив
- $_array_ = array(
- 'qwerwqer',
- 'qwergvqsfgwdsfg',
- 'name',
- "123421");
- $_array_2 = array(
- 'name' =>'me',
- 'surname' => 'not me',
- 'qwe'=>'1234234234');
- $j = false;
- $a = 'текстовый текст';
- if ($my_variable == 100 and $_c >= 33.4546)
- {
- echo $_c * 22+2222222;
- }else
- {
- echo 'иначе';
- }