src/PoEntry.php
public function addQuotedAtPosition(string $type, int $position, string $value): void
    {
        if ($value[0]=='"') {
            $value = substr($value, 1, -1);
        }
        $value = stripcslashes($value);

        if ($this->entry[$type] === null) {
            $this->entry[$type] = array();
        }
        if (isset($this->entry[$type][$position]) &&
            is_scalar($this->entry[$type][$position])
        ) {
            $this->entry[$type][$position] = array($this->entry[$type][$position]);
        }
        $this->entry[$type][$position][] = $value;
    }
public function addQuotedAtPosition(string $type, int $position, string $value): void
    {
        if ($value[0]=='"') {
            $value = substr($value, 1, -1);
        }
        $value = stripcslashes($value);

        if ($this->entry[$type] === null) {
            $this->entry[$type] = array();
        }
        if (isset($this->entry[$type][$position]) &&
            is_scalar($this->entry[$type][$position])
        ) {
            $this->entry[$type][$position] = array($this->entry[$type][$position]);
        }
        $this->entry[$type][$position][] = $value;
    }
public function addQuotedAtPosition ( string $ type , int $ position , string $ value ) : void { if ( $ value [ 0 ] == '"' ) { $ value = substr ( $ value , 1 , - 1 ) ; } $ value = stripcslashes ( $ value ) ; if ( $ this -> entry [ $ type ] === null ) { $ this -> entry [ $ type ] = array ( ) ; } if ( isset ( $ this -> entry [ $ type ] [ $ position ] ) && is_scalar ( $ this -> entry [ $ type ] [ $ position ] ) ) { $ this -> entry [ $ type ] [ $ position ] = array ( $ this -> entry [ $ type ] [ $ position ] ) ; } $ this -> entry [ $ type ] [ $ position ] [ ] = $ value ; }
add a quoted value to the nested array 'type' in the entry

This is mainly useful for translated plurals. Since any plural msgstr can have
continuation lines, the message is stored as an array of arrays.

@param string  $type     PoToken constant
@param integer $position array position to store
@param string  $value    value to store
@return void
add a quoted value to the nested array type in the entry