void Worksheet::protect (
string $password
)
Set the worksheet protection flag to prevent accidental modification and to hide formulas if the locked and hidden format properties have been set.
string $password
-
The password to use for protecting the sheet.
This function can not be called statically.
Using protect()
<?php
?>