Search
 
SCRIPT & CODE EXAMPLE
 

PHP

file_put_contents php json file

$data[] = $_POST['data'];

$inp = file_get_contents('results.json');
$tempArray = json_decode($inp);
array_push($tempArray, $data);
$jsonData = json_encode($tempArray);
file_put_contents('results.json', $jsonData);
Comment

PREVIOUS NEXT
Code Example
Php :: inner join codeigniter 
Php :: wordpress get child posts 
Php :: How to insert time in table using CodeIgniter 
Php :: php artisan up 
Php :: composer cache clean 
Php :: php function exists 
Php :: newline in php 
Php :: laravel firstorcreate 
Php :: twig trim space 
Php :: php connect ms sql server 
Php :: clear cache via route laravel 
Php :: setcookie in laravel 8 
Php :: print url in view yii2 
Php :: laravel env asset_url 
Php :: how to return with open model popup in laravel 
Php :: sql repare php 
Php :: update-alternatives java 
Php :: laravel instal 
Php :: how to truncate the given string to the specified length in blade.php 
Php :: password strength php 
Php :: yii2 pjax 
Php :: laravel string capitalize in view 
Php :: the action you have requested is not allowed. in codeigniter 
Php :: palindrome in php 
Php :: page expire in laravel 
Php :: php sum array of objects 
Php :: php http_build_query 
Php :: parametre grouping laravel quert 
Php :: Array and string offset access syntax with curly braces is no longer supported in C:xampphtdocse-examPHPExcelPHPExcelSharedString.php on line 529 
Php :: root directory in php 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =