Plop
A simple logging library for PHP
|
Public Member Functions | |
interpolate ($msg, array $args=array()) | |
Definition at line 23 of file InterpolatorInterface.php.
Plop\InterpolatorInterface::interpolate | ( | $msg, | |
array | $args = array() |
||
) |
Interpolate percent-sequence-variables in a message.
string | $msg | The message that serves as the model for the result. It may refer to the values of variables dynamically using special formatting sequences. |
array | $args | (optional) Associative array of values that will be dynamically replaced in the message. Defaults to an empty array. |
string | The message with all of its formatting-sequences replaced with their proper value. |
Implemented in Plop\Interpolator\Psr3, and Plop\Interpolator\Percent.