Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.www.php > #22381

Maggiore e minore

Path csiph.com!aioe.org!.POSTED!not-for-mail
From ^Bart <gabriele1NOSPAM@hotmail.com>
Newsgroups it.comp.www.php
Subject Maggiore e minore
Date Sun, 2 Dec 2018 15:17:30 +0100
Organization Aioe.org NNTP Server
Lines 17
Message-ID <pu0php$uk1$1@gioia.aioe.org> (permalink)
NNTP-Posting-Host tyyctPuN/UjWqijklEqvbA.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Content-Language en-US
X-Notice Filtered by postfilter v. 0.8.3
X-Mozilla-News-Host news://news.aioe.org:119
Xref csiph.com it.comp.www.php:22381

Show key headers only | View raw


<?php
$eta= 14; //QUI DEFINIAMO BANALMENTE UNA VARIABILE
NUMERICA
if ($eta < 18){  //SE IL VALORE DI ETà E' MAGGIORE
DI 18
echo "Sei maggiorenne!"; //MOSTRIAMO UN BANALISSIMO
  TESTO
} else { //altrimenti
echo "Sei minorenne";
}
?>

L'esempio è sbagliato, $eta < 18 sinifica minore e non maggiore come 
indicato nell'esempio trovato in una guida!

Saluti.
^Bart

Back to it.comp.www.php | Previous | Next | Find similar | Unroll thread


Thread

Maggiore e minore ^Bart <gabriele1NOSPAM@hotmail.com> - 2018-12-02 15:17 +0100

csiph-web