Search
 
SCRIPT & CODE EXAMPLE
 

PHP

file_get_content

<?php
$file = 'people.txt';
// Open the file to get existing content
$current = file_get_contents($file);
// Append a new person to the file
$current .= "John Smith
";
// Write the contents back to the file
file_put_contents($file, $current);
?>
Comment

PREVIOUS NEXT
Code Example
Php :: all resource routes laravel 8 
Php :: php check image size before upload 
Php :: laravel 8 websockets 
Php :: update codeigniter 
Php :: laravel auth setup 
Php :: php one hour in the future 
Php :: laravel validate form data unique 
Php :: last item coma replace and php 
Php :: laravel collection times 
Php :: faker image laravel 8 
Php :: laravel search multiple tables 
Php :: plesk web config file laravel 
Php :: laravel Auth::logoutOtherDevices 
Php :: laravel phpdoc collection of model 
Php :: Difference in seconds between datetime 
Php :: acf sub_field image title 
Php :: echo string in php 
Php :: How do I change the URL of Add to cart in WooCommerce 
Php :: wordpress enable post thumbnail 
Php :: find php ini 
Php :: php function to remove null value from array 
Php :: laravel use config 
Php :: load session in codeigniter 
Php :: wordpress add button to admin bar 
Php :: php count string in array 
Php :: php pdo example 
Php :: extract text before last space php 
Php :: laravel create many 
Php :: array shift php 
Php :: wordpress get post date custom format 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =