<?php 
function numbers ($x) {
       if ($x > 0) {
                echo "number is positive";
       } else if ($x == 0) {
                echo "number is zero";
        } else {
                echo " number is negative";
         }
}
echo numbers(256); \\ result-- number is positive
echo numbers(0); \\ result-- number is zero
echo numbers(-123); result-- number is negative
by Gvanca Gharibashvili
2 years ago
PHP
Object Oriented PHP Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences