<?php
$scan = "00:12:a9:54:f6:a7,Privacy,-52.00,3Com,6,30:91:8f:24:07:d0,RSN: Privacy,-85.00,CenturyLink3873,1,00:0c:e5:46:2d:74,ShortSlotTime,-92.00,WLAN,1,c0:3f:0e:57:87:e8,RSN: Privacy,-94.00,Megan-PC-Wireless,6,00:12:a9:54:f6:a7,ShortPreamble,-45.00,WLAN,7";
$escan = (explode(",",$scan));
$cscan = (array_chunk($escan, 5));
class d_object {
var $mac;
var $enc;
var $freq;
var $ssid;
var $channel;
function __construct ($pl)
{
if (is_array($pl))
$this->from_array($pl);
}
public function from_array($cscan)
{
foreach(get_object_vars($this) as $attrName => $attrValue)
$this->{$attrName} = $cscan[$attrName];
}
public function s_output ()
{
print "{$this->name}";
}
}
$device = new d_object($cscan);
$device->s_output();
?>
Warning: Undefined array key "mac" in /in/WG0iN on line 26
Warning: Undefined array key "enc" in /in/WG0iN on line 26
Warning: Undefined array key "freq" in /in/WG0iN on line 26
Warning: Undefined array key "ssid" in /in/WG0iN on line 26
Warning: Undefined array key "channel" in /in/WG0iN on line 26
Warning: Undefined property: d_object::$name in /in/WG0iN on line 31
Notice: Undefined index: mac in /in/WG0iN on line 26
Notice: Undefined index: enc in /in/WG0iN on line 26
Notice: Undefined index: freq in /in/WG0iN on line 26
Notice: Undefined index: ssid in /in/WG0iN on line 26
Notice: Undefined index: channel in /in/WG0iN on line 26
Notice: Undefined property: d_object::$name in /in/WG0iN on line 31
Output for 7.3.32 - 7.3.33
Output for 5.2.6 - 5.2.17
Notice: Undefined index: mac in /in/WG0iN on line 26
Notice: Undefined index: enc in /in/WG0iN on line 26
Notice: Undefined index: freq in /in/WG0iN on line 26
Notice: Undefined index: ssid in /in/WG0iN on line 26
Notice: Undefined index: channel in /in/WG0iN on line 26
Notice: Undefined property: d_object::$name in /in/WG0iN on line 31
Output for 5.1.3 - 5.1.6, 5.2.0 - 5.2.5
Notice: Undefined index: mac in /in/WG0iN on line 26
Notice: Undefined index: enc in /in/WG0iN on line 26
Notice: Undefined index: freq in /in/WG0iN on line 26
Notice: Undefined index: ssid in /in/WG0iN on line 26
Notice: Undefined index: channel in /in/WG0iN on line 26
Notice: Undefined property: d_object::$name in /in/WG0iN on line 31
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.2
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WG0iN on line 10
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WG0iN on line 11
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WG0iN on line 12
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WG0iN on line 13
Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in /in/WG0iN on line 14
Notice: Undefined index: mac in /in/WG0iN on line 26
Notice: Undefined index: enc in /in/WG0iN on line 26
Notice: Undefined index: freq in /in/WG0iN on line 26
Notice: Undefined index: ssid in /in/WG0iN on line 26
Notice: Undefined index: channel in /in/WG0iN on line 26
Notice: Undefined property: d_object::$name in /in/WG0iN on line 31
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/WG0iN on line 23
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/WG0iN on line 23
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/WG0iN on line 23
Process exited with code 255.