Hi,
I am getting confused at times the way that the exclamation mark is used in php. Please can anyone tell me how the exclamation mark is used in php?? I mean something like if (!(.....){}
Thanks in advance.
Jamal
The use of exclamation mark "!" in php
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
To carry on from what mydimension said it is often used for things like -
which basically says check to see if this function is returning FALSE, or more specifically in this case that $name is not a directory.
Mac
Code: Select all
if (!is_dir($name)) {Mac
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact: