protected function parseContent()
    {
        $contentString = strtok($this->query, '/');

        $content = [];
        $delim = '(),';
        $tok = strtok($contentString, $delim);
        while ($tok !== false) {
            $content[] = $tok;
            $tok = strtok($delim);
        }

        $this->contentTypes = $content;
    }
protected function parseContent()
    {
        $contentString = strtok($this->query, '/');

        $content = [];
        $delim = '(),';
        $tok = strtok($contentString, $delim);
        while ($tok !== false) {
            $content[] = $tok;
            $tok = strtok($delim);
        }

        $this->contentTypes = $content;
    }
protected function parseContent ( ) { $ contentString = strtok ( $ this -> query , '/' ) ; $ content = [ ] ; $ delim = '(),' ; $ tok = strtok ( $ contentString , $ delim ) ; while ( $ tok !== false ) { $ content [ ] = $ tok ; $ tok = strtok ( $ delim ) ; } $ this -> contentTypes = $ content ; }
Parses the content area of the query string.
Parses the content area of the query string .