on line 5 in that code, try: $value=$browser["browser"]; PHP seems to like having quotation marks in its array element name thingy... | | <? | $browser = get_browser(); | $value=$browser[browser]; | echo "$value"; | ?> |