Jump to content

[SOLVED] PHP syntax help


thompsma

Recommended Posts

I am pretty new to PHP (recovering ASP programmer :).  I have come across a sample of code that I need help with.

 

The code:

while (@!$handle = fopen($dirpath."/".$filename, "x+"))

{

    $filename = random(8).".".$fileext;

}

 

The snippet works perfectly, but I am trying to understand the syntax.  What does the "@!" mean?

Link to comment
https://forums.phpfreaks.com/topic/68063-solved-php-syntax-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.