[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]

[Hilos de Discusión] [Fecha] [Tema] [Autor]

Re: [Ayuda] off topic: recursos java



[root@tajin bin]# more t.php
#!/usr/bin/php

<?


$var = 0;

if (is_null($var) ){
     echo "Es nulo";
}else {

     echo "No es nulo y es $var \n";
}

?>
[root@tajin bin]# php t.php
Content-type: text/html
X-Powered-By: PHP/4.3.6


No es nulo y es 0








> On Thursday 26 August 2004 12:42, costal en servidor unam mx wrote:
> > > Lo dicho  no hay absolutamente nada que yo pueda hacer
> > >
> > > Nada == NULL == 0
> > >
> > > entendiste ?
> >
> > Orale no sabia que null era igual a 0
> -----------------------------
> $ cat test.php
> <?php
>         if ( NULL == 0 ) {
>                 echo "Es igual\n";
>                 }else{
>                 echo "No es Igual\n";
>         }
> ?>
> max@garaged /home/max/IMAGES $ php test.php
> Es igual
> 
> max@garaged /home/max/IMAGES $ cat text.pl
> #!/usr/bin/perl
> 
> if ( NULL == 0 ) {
>         print "Es igual\n";
> } else {
>         print "No es igual\n";
> }
> 
> max@garaged /home/max/IMAGES $ perl text.pl
> Es igual
> ----------------------------
> Interesante no? :-)
> 
> Saludos
> Max
> 
> 




[Hilos de Discusión] [Fecha] [Tema] [Autor]