Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert text file to json php

<?php
  header('Content-type: application/json');
  echo json_encode( explode("
",file_get_contents('data.txt')) );
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #text #file #json #php
ADD COMMENT
Topic
Name
9+2 =