1. Go to this page and download the library: Download gggordon/php-sql-replacer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gggordon / php-sql-replacer example snippets
ents ="insert into test (column1, column2) values ('I like trading','Another Value')";
$replacer = new \PhpSqlReplacer\PhpSqlReplacer();
$updatedContents = $replacer->replaceValue(
$contents,
"trading",
"butter"
);
echo $updatedContents;