PHP echo a variable only once if array returns at least one value
===

Ok so I have value being returned from a database in an `ARRAY` Some pages have 3 values, and some pages have 10, and other have 0.

If a page returns a value I want the label to appear ONCE, hence not in the loop.
label -> `$key_label = '<span class="hl_reference"><u>key references:</u></span>';`

If the page doesn't have any `$reference_keys` I don't want the label to appear, hence `$key_label = false;`

So I want to check the `ARRAY` for a value and if >= 1: the label will also appear.

My code doesn't seem to be validating `if(array($value => 1) && !$key_label)` I guess my syntax is wrong or maybe I should be using a different function?

Thanks for help!



    $key_label = false;
    $key_label = '<span class="hl_reference"><u>key references:</u></span>';

    foreach($reference_keys as $value)
		{
		   echo $value .'&nbsp;';
		}
		
    if(array($value => 1) && !$key_label) 
		{
		$key_label = true; 
		  echo $key_label;
		};			 


