Skip to content
Advertisement

Can a PHP function expect a type?

I’m trying to do something like this: function get_value($value) { if (is_null($value)) { if ($value expects array) { return [‘hello’, ‘world’]; } else { …

PHP: Get client MAC address

i want to get the client MAC address from an connected socket. usually you can get the IP-address via is there any chance to get the MAC at the same way? i know all about the facts that the real MAC is only available in a local network and also this hack: but i want to avoid to execute an

Advertisement