Just getting this back on the list >.> ---------- Forwarded message ---------- From: Eddie Drapkin <oorza2k5@xxxxxxxxx> Date: Fri, Jun 26, 2009 at 2:36 AM Subject: Re: What does this mean? To: Jason Carson <jason@xxxxxxxxxxxxxx> It's used in key value combinations in several places. When building an array: $foo = array('key' => 'value', 'another_key' => 'another value'); which will give you an array that looks like $foo['key'] = 'value'; $foo['another_key'] = 'another_value'; Also, in foreach(), which is a language construct used to iterate over arrays: foreach($foo as $key => $val) { echo "The key for this element is $key and the value is $val\n"; } will output: The key for this element is key and the value is value The key for this element is another_key and the value is another_value Those are the two most common places you'll see it (and perhaps the only, I don't want to speak conclusively, though, I'm awfully tired this evening!) On Fri, Jun 26, 2009 at 2:31 AM, Jason Carson<jason@xxxxxxxxxxxxxx> wrote: > Hey all, I'm new to the list and I have a question... > > What does => mean? > > The book I am reading is called Programming PHP published by O'Reilly. I > haven't read the whole book yet. I was flipping through the pages and in > the book there is mention of <= (less than or equal) and >= (greater than > or equal)but it doesn't say what => is even though it is used numerous > times in the example code. > > Thanks > > Jason > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php