src/Storage/File.php
public function write($uid, $mixed) {
        $fp = @fopen($this->dir . '/' . $uid, 'w+');
        if (!$fp) {
            return false;
        }
        $r = fwrite($fp, serialize($mixed));
        fclose($fp);
        return $r;
    }
public function write($uid, $mixed) {
        $fp = @fopen($this->dir . '/' . $uid, 'w+');
        if (!$fp) {
            return false;
        }
        $r = fwrite($fp, serialize($mixed));
        fclose($fp);
        return $r;
    }
public function write ( $ uid , $ mixed ) { $ fp = @ fopen ( $ this -> dir . '/' . $ uid , 'w+' ) ; if ( ! $ fp ) { return false ; } $ r = fwrite ( $ fp , serialize ( $ mixed ) ) ; fclose ( $ fp ) ; return $ r ; }
Write datas on $uid key
@param mixed $uid
@param mixed $mixed
Write datas on $uid key