In this sample of code...
if( ! $handle = fopen($file,"a") )
What does the '!' signify?
I know !== means "is not equal to", but is this along the same lines?
It means the opposite of the result. So in this instance, it is saying "if the file cannot be opened..."
Ahhh, I see.
So it will perform the
$handle = fopen($file,"a")
no matter what, but it will execute the next line of code if it can't?
Correct. PHP works from the innermost parenthesis first, so the file is opened (or at least attempted) and if it does not succeed then the command after if will be executed.
Thanks for the help 🆒