Location: PHPKode > scripts > DATA > data/DATA/SQLVarchar.php
<?php
/**
 * @package DATA
 */

/**
 * ANSI SQL Character Varying data type representation.
 * 
 * When inboxing, if the field cannot hold the desired value
 * {@link DATA_StringTooLarge} is thrown.
 */
class DATA_SQLVarchar extends DATA_SQLChar {
    /**
     * Returns the length of the string stored.
     * 
     * @return int Length of the string.
     */
    public function getStringLength() {
        return strlen($this->chars);
    }
    
    public function __toString() {
        return (string)$this->chars;
    }
}
?>
Return current item: DATA