Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199908

Re: [PHP3] Something like "isNull" in PHP3??? From: Kristian Köhntopp (kk <email protected>)
Date: 08/31/99

Vivek Awasthi wrote:
> can't you just check
> if ($variable == "")
> { }

kk <email protected>:~/Source/php3 > ./php -v
3.0.13-dev
kk <email protected>:~/Source/php3 > ./php
<?php
print isset($dummy)?"set":"not set";
Content-type: text/html

not set

if ($dummy == "") {
  printf("empty\n");
empty
} else {
  printf("nonempty\n");
}

print isset($dummy)?"set":"not set";
not set

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>