PHP code example of vielhuber / magicreplace
1. Go to this page and download the library: Download vielhuber/magicreplace 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/ */
vielhuber / magicreplace example snippets
unserialize(str_replace('www.foo.tld', 'www.barrr.tld', serialize('url=www.foo.tld')));
ielhuber\magicreplace\magicreplace;
magicreplace::run('input.sql', 'output.sql', ['search-1' => 'replace-2', 'search-2' => 'replace-2']);
php magicreplace.php input.sql output.sql search-1 replace-1 search-2 replace-2