src/Budkit/Protocol/Input.php
public function getWord($name, $default = '', $verb = 'get', $options = array())
    {
        //First word in a sanitized string
        $sentence = $this->getString($name, $default, false);

        //@TODO validate string before breaking into words;
        //Requires php5.3!!
        return (string)strstr($sentence, ' ', true);
    }
public function getWord($name, $default = '', $verb = 'get', $options = array())
    {
        //First word in a sanitized string
        $sentence = $this->getString($name, $default, false);

        //@TODO validate string before breaking into words;
        //Requires php5.3!!
        return (string)strstr($sentence, ' ', true);
    }
public function getWord ( $ name , $ default = '' , $ verb = 'get' , $ options = array ( ) ) { //First word in a sanitized string $ sentence = $ this -> getString ( $ name , $ default , false ) ; //@TODO validate string before breaking into words; //Requires php5.3!! return ( string ) strstr ( $ sentence , ' ' , true ) ; }
Returns the first word a santized string
Strip tags, optionally strip or encode special characters.

@param string $name
@param string $verb
@param array $flags
Returns the first word a santized string Strip tags optionally strip or encode special characters .