Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $id = (int) $_GET['id'];
- $file = file('data.txt');
- if ($id >= 0 && $id <= count($file)) {
- unset($file[$id]);
- // После презаписваме файла с вече "осакатения" масив.
- // foreach ...
- }
Advertisement
Add Comment
Please, Sign In to add comment