Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php file put content

<?php
$data = ["a@gmail2.com" => ["more" => ["yes" => "More"]]];

$inp = file_get_contents('results.json');
$tempArray = json_decode($inp);
array_push($tempArray, $data);
$jsonData = json_encode($tempArray);
file_put_contents('results.json', $jsonData);
 
PREVIOUS NEXT
Tagged: #php #file #put #content
ADD COMMENT
Topic
Name
5+7 =