Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
FestarBG каза:Ако искаш да е число и то да е само положително ползвай:
Код:$num = (int) $_GET['neshto']; $num = abs($num);
И минуса няма нищо общо с кавичките..![]()
$id = (int)$_GET['id'];
<?php
if($id > 0)
{
//код за селектиране на запис
}
else
{
header('Location: index.php');
}
<?php
$neshto = (preg_match('/^[0-9]$/', $_GET['neshto'])) ? $_GET['neshto'] : NULL;
echo $neshto;
?>