check number is positive or negative in php
if($number > 0){
echo "the number is positive";
}
elseif($number < 0){
echo "the number is negative";
}
else{
echo "the number is zero";
}
Also in PHP:
- dates and time php
- Call to undefined function App\Http\Controllers\curl_init()
- convert array to array
- echo date php format
- display folder contents php
- divide page in pdf with page break using php
- custom factory in laravel 8
- -5 php change timezone
- convert byte to megabyte php
- contain string php
- day of the week th usig php
- count string php
- add d4 days in php\
- convert time in date php
- check array for duplicates php
- change native password in phpmyadmin
- Laravel 8 Resource
- calculate string length php
- check if the string match in php
- check the type of the variable in php
- explode in php
- add date days php
- display error php
- clear cache command in laravel