function shrinktheweb_getArrayValue in ShrinkTheWeb 6
Same name and namespace in other branches
- 8 shrinktheweb.api.inc \shrinktheweb_getArrayValue()
- 7 shrinktheweb.api.inc \shrinktheweb_getArrayValue()
Safe method to get the value from an array using the specified key
File
- ./
shrinktheweb.api.inc, line 585
Code
function shrinktheweb_getArrayValue($aArray, $sKey, $isReturnSpace = false) {
if ($aArray && isset($aArray[$sKey])) {
return $aArray[$sKey];
}
// If returnSpace is true, then return a space rather than nothing at all
if ($isReturnSpace) {
return ' ';
}
else {
return false;
}
}