This text is generated by common HTML

This text is generated by PHP echo.


Google // Set the variables: $quantity = 30; // Buying 30 widgets. $price = 119.95; $taxrate = .05; // 5% sales tax. // Calculate the total: $total = $quantity * $price; $total = $total + ($total * $taxrate); // Calculate and add the tax. // Format the total: $total = number_format ($total, 2); // Print the results: echo '

You are purchasing ' . $quantity 30 . ' widget(s) at a cost of $' . $price 119.95 . ' each. With tax, the total comes to $' . $total 2 . ' .< /p>';