PHP code example of zualex / parsertext
1. Go to this page and download the library: Download zualex/parsertext 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/ */
zualex / parsertext example snippets
use \ParserText\ParserText;
$parserSms = new ParserText('
Никому не говорите пароль! Его спрашивают только мошенники.
Пароль: {% password %}
Перевод на счет {% receiver %}
Вы потратите {% sum %}р.
');
print_r($parserSms->run('
Никому не говорите пароль! Его спрашивают только мошенники.
Пароль: 72946
Перевод на счет 410011068150008
Вы потратите 5025,13р.
'));