Hi! Could we please enable some services and cookies to improve your experience and our website?

PHPize Online / SQLize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear

Stuck with a problem? Got Error? Ask AI support!

Copy Clear
Copy Format Clear
<?php $res = [1]; $res1 = [1]; print_r(gettype($res1)); //print_r(gettype($res) && !is_null($res1)); if(!is_null($res) && !is_null($res1)){ echo' не равен null'; } elseif(is_null($res) && is_null($res1)){ echo' оба равны null'; } elseif(!is_null($res) && is_null($res1)){ echo' res не равен null a res1 равен null'; } elseif(is_null($res) && !is_null($res1)){ echo' res равен null a res1 не равен null'; }
Copy Clear