Re: in_array() with associate array?

From: Date: Wed, 01 Aug 2001 00:03:20 +0000
Subject: Re: in_array() with associate array?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60538@lists.php.net to get a copy of this message
in_array is for testing that a value exists in an array. What you want is if ( isset( $some_array[some_key] ) ) print "HAS KEY"; else print "DOESN'T HAVE KEY"; At 14:23 31/07/2001 -0400, Jaxon wrote:
hi, in_array is confusing me :) can someone show me an example of how to test if $some_array[some_key] actually has a value, without outputting the value? tia, jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: bwhite@steptwo.com.au

« previous php.general (#60538) next »