Этот код использует операции побитового для обеспечения того, чтобы права доступа файла не выше, чем 666. Чтобы разбить его:
// Retrieves the file details, including current file permissions.
$stat = stat(dirname($new_file));
// The file permissions are and-ed with the octal value 0000666 to make
// sure that the file mode is no higher than 666. In other words, it locks
// the file down, making sure that current permissions are no higher than 666,
// or owner, group and world read/write.
$perms = $stat['mode'] & 0000666;
// Finally, the new permissions are set back on the file
@chmod($new_file, $perms);
+1 за действительный вопрос учитывая, что вы не видите много используя битовые операторы PHP. Для получения дополнительной информации о побитовых операторах, пожалуйста, ознакомьтесь с http://php.net/manual/en/language.operators.bitwise.php –