stream_socket_recvfrom()
function stream_socket_recvfrom(resource $socket, int $length, int $flags = 0, string $address = ''): mixed
Receives data from a socket, connected or not.
Parameters:
$socket(resource)$length(int)$flags(int), default0, optional$address(string), passed by reference, default'', optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_socket_recvfrom.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_socket_recvfrom is implemented in the compiler, see the internals page.