src/IniReader.php
public function readString($ini)
    {
        // On PHP 5.3.3 an empty line return is needed at the end
        // See http://3v4l.org/jD1Lh
        $ini .= "\n";

        if ($this->useNativeFunction) {
            $array = $this->readWithNativeFunction($ini);
        } else {
            $array = $this->readWithAlternativeImplementation($ini);
        }

        return $array;
    }
public function readString($ini)
    {
        // On PHP 5.3.3 an empty line return is needed at the end
        // See http://3v4l.org/jD1Lh
        $ini .= "\n";

        if ($this->useNativeFunction) {
            $array = $this->readWithNativeFunction($ini);
        } else {
            $array = $this->readWithAlternativeImplementation($ini);
        }

        return $array;
    }
public function readString ( $ ini ) { // On PHP 5.3.3 an empty line return is needed at the end // See http://3v4l.org/jD1Lh $ ini .= "\n" ; if ( $ this -> useNativeFunction ) { $ array = $ this -> readWithNativeFunction ( $ ini ) ; } else { $ array = $ this -> readWithAlternativeImplementation ( $ ini ) ; } return $ array ; }
Reads a INI configuration string and returns it as an array.

The array returned is multidimensional, indexed by section names:

```
array(
'Section 1' => array(
'value1' => 'hello',
'value2' => 'world',
),
'Section 2' => array(
'value3' => 'foo',
)
);
```

@param string $ini String containing INI configuration.
@throws IniReadingException
@return array
Reads a INI configuration string and returns it as an array .