Plop
A simple logging library for PHP
Plop\InterpolatorInterface Interface Reference
+ Inheritance diagram for Plop\InterpolatorInterface:

Public Member Functions

 interpolate ($msg, array $args=array())
 

Detailed Description

Definition at line 23 of file InterpolatorInterface.php.

Member Function Documentation

Plop\InterpolatorInterface::interpolate (   $msg,
array  $args = array() 
)

Interpolate percent-sequence-variables in a message.

Parameters
string$msgThe 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.
Return values
stringThe message with all of its formatting-sequences replaced with their proper value.

Implemented in Plop\Interpolator\Psr3, and Plop\Interpolator\Percent.


The documentation for this interface was generated from the following file: