meaning of '=>'
Posted: Sat May 24, 2003 9:11 pm
I am creating an array like this
$prices = array ('tires'=>100, 'oil'=>100, 'spark plugs'=>4 );
or like this
$prices['tires']=100;
$prices['oil']=10;
$prices['spark plugs']=4;
first one I specificy the '=>' in the other way I can just use '='
Not sure what '=>' is suppose to do more? then just '='
Going through my php book I don't have a '=>' operator
I have '<=' and '>='
Is '=>' not an operator?
Thanks
$prices = array ('tires'=>100, 'oil'=>100, 'spark plugs'=>4 );
or like this
$prices['tires']=100;
$prices['oil']=10;
$prices['spark plugs']=4;
first one I specificy the '=>' in the other way I can just use '='
Not sure what '=>' is suppose to do more? then just '='
Going through my php book I don't have a '=>' operator
I have '<=' and '>='
Is '=>' not an operator?
Thanks