src/Bencode.php
public static function dump(string $filename, $data, array $options = []): bool
    {
        return file_put_contents($filename, self::encode($data, $options)) !== false;
    }
public static function dump(string $filename, $data, array $options = []): bool
    {
        return file_put_contents($filename, self::encode($data, $options)) !== false;
    }
public static function dump ( string $ filename , $ data , array $ options = [ ] ) : bool { return file_put_contents ( $ filename , self :: encode ( $ data , $ options ) ) !== false ; }
Dump data to bencoded file

@param string $filename
@param mixed $data
@param array $options
@return bool success of file_put_contents
Dump data to bencoded file