PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Can someone tell me what a tilde means ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Can someone tell me what a tilde means ?

Réponse
 
LinkBack Outils de la discussion
Vieux 08/04/2008, 11h19   #1
Tony Collings
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can someone tell me what a tilde means ?

The humble tilde (~). I came across it the other day in some PHP code
Code:
~E_ERROR
I'm curious, can't find any documentation on it. In math it refers to
propostional logic, is it the same thing in PHP ?


  Réponse avec citation
Vieux 08/04/2008, 12h45   #2
Németh Zoltán
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Can someone tell me what a tilde means ?

> The humble tilde (~). I came across it the other day in some PHP code
>
Code:
~E_ERROR
>
> I'm curious, can't find any documentation on it. In math it refers to
> propostional logic, is it the same thing in PHP ?


~ $a Not Bits that are set in $a are not set, and vice versa.

http://hu.php.net/manual/en/language...rs.bitwise.php

greets,
Zoltán Németh

>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



  Réponse avec citation
Vieux 08/04/2008, 14h51   #3
Andrew Ballard
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Can someone tell me what a tilde means ?

2008/4/8 Németh Zoltán <znemeth@alterationx.hu>:
> > The humble tilde (~). I came across it the other day in some PHP code
> >
Code:
~E_ERROR
> >
> > I'm curious, can't find any documentation on it. In math it refers to
> > propostional logic, is it the same thing in PHP ?

>
> ~ $a Not Bits that are set in $a are not set, and vice versa.
>
> http://hu.php.net/manual/en/language...rs.bitwise.php
>
> greets,
> Zoltán Németh


You are right, of course, but it is a good question of how one who is
totally unfamiliar with bitwise syntax in any language might ever find
that. For people learning the language, it's not like they can type a
tilde character into the documenation search and get results. Same for
the other operators. I suppose if one thinks to search for the word
'operators', one would get there eventually.

I remember how thrown I was years ago when I first tried ^ in PHP,
having first learned good ol' MS-DOS BASICA years ago, and thinking
that I was raising x to the power of y. :-)


Andrew

PS - For kicks, I just searched for the word 'tilde' and it returned
the delete() function. :-O
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 10h58.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11564 seconds with 11 queries