PHP to make vars and values part of array
- by Chris
I currently have this function to search and replace in a text file.
// Input
$ect = array('Visssa', 'Lisssa', 'her');
// Placeholders in the file
$put = array('lname', 'fname', 'hisher');
// Replace the placeholders
$oput = str_replace($put, $ct, 'tmpfile.txt');
This is not the full program but the idea is replace the values found in…