I have a text file named Profile.txt which is in key:value pair form.
For ex:
Name: ABC
Father's Name: XYZ
DOB: 11-11-2011
How do I access value ABC by key Name so I could store it in database?
Here's the code:
<?php
$my_file = fopen('../img/uploads/ABC_1/Profile.txt' ,"r");
$content = file_get_contents('../img/uploads/ABC_1/Profile.txt');
echo $content;
fclose($my_file);
?>