'; echo $current . '

'; // Append a new person to the file $current .= "Humpty Dumpty\n" ; // notice the . operator // Write the contents back to the file file_put_contents($fname, $current); echo 'Display content after appending data
'; echo file_get_contents($fname) .'
'; ?>