php array. unable to find value from the key -
please me figure out error find value key. value printed when using string not variable same value. in advance
code:
print_r($essid_data); print_r($essid_data['criticalboot']); print_r($myssid); print_r($essid_data[$myssid]);
output:
array ( [criticalboot] => array ( [0] => ccmp [1] => psk ) ) array ( [0] => ccmp [1] => psk ) criticalboot undefined index: criticalboot
try trim()
first before feeding index. like:
$myssid = trim($myssid); print_r($essid_data[$myssid]);
Comments
Post a Comment