Example #1
0
$_POST['button'];
$numberWords = intval($_POST['numberWords']);
if (empty($POST_['numberWords'])) {
    $randPhrase = randPassPhraseGen($numberWords);
    //print($numberWords);
}
?>

<h2 class="phrase"><strong>Random Phrase Generated: </strong><i><?php 
echo $randPhrase;
?>
</i></h2>
<?php 
global $addSymbol;
if (isset($_POST['addSymbol'])) {
    $addSymbol = addSymbol();
}
?>
<h2 class="phrase"><strong>Random Phrase Generated with a Symbol: </strong><i><?php 
echo $addSymbol;
?>
</i></h2>

<?php 
global $addNumber;
if (isset($_POST['addNumber'])) {
    $addNumber = addNumber();
}
?>
<h2 class="phrase"><strong>Random Phrase Generated with a Number: </strong><i><?php 
echo $addNumber;
Example #2
0
function getTotal($price, $currency = 'TRY')
{
    $getCurrency = Currency::where('code', '=', $currency)->first();
    $decimal_point = ',';
    $thousand_point = '.';
    return addSymbol(number_format(round($price, 0), (int) $getCurrency->decimal_place, $decimal_point, $thousand_point), $getCurrency->symbol_left, $getCurrency->symbol_right);
}