Net_Socket::read()

Net_Socket::read()

Net_Socket::read() -- retrieve data

Description

Read a specified amount of data. This is guaranteed to return, and has the added benefit of getting everything in one fread() chunk; if you know the size of the data you're getting beforehand, this is definitely the way to go.

Parameter

  • integer $size - maximum number of chars to recieve

Return value

mixed - the data or a PEAR_Error

Note

This function can not be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.