I just inherited some code, and have not seen this format before. Here's an array:
$arrayWeather = array('weatherParameters' => array(
'wspd' => $_GET['wspd'] == 'wspd',
'wdir' => $_GET['wdir'] == 'wdir',
'waveh' => $_GET['waveh'] == 'waveh'));
I've never seen this before; what exactly does this mean?
'wspd' => $_GET['wspd'] == 'wspd'
Is it a shortcut if statement, saying if _$GET['wspd'] exists, set the array key called wspd to the literal value wspd? Or something else entirely?