public function parseString($string)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');
        
        foreach ($this->data as $key => $value) {
            $string = str_replace($key, $value, $string);
        }

        return $string;
    }
public function parseString($string)
    {
        //argument 1 must be a string
        Argument::i()->test(1, 'string');
        
        foreach ($this->data as $key => $value) {
            $string = str_replace($key, $value, $string);
        }

        return $string;
    }
public function parseString ( $ string ) { //argument 1 must be a string Argument :: i ( ) -> test ( 1 , 'string' ) ; foreach ( $ this -> data as $ key => $ value ) { $ string = str_replace ( $ key , $ value , $ string ) ; } return $ string ; }
Simple string replace template parser

@param *string $string The template string

@return string
Simple string replace template parser