anthropos9 Posted April 26, 2006 Share Posted April 26, 2006 Hi I've looked all over for this - including the php.net site - and couldn't find an answer. Can somebody tell me what => means? Thanks. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 26, 2006 Share Posted April 26, 2006 It allows you to define an index in array ie:[code]<?php$myarray = array("index1" => "hello ", "index2" => "world");//no to called each array for both the iondex1 and index2 array indexecho $myarray['index1'];echo $myarray['index2'];//out should behello world?>[/code]With out the definning an index you can access your arrays like so$myarray[0] and $myarray[1] also. Quote Link to comment Share on other sites More sharing options...
anthropos9 Posted April 26, 2006 Author Share Posted April 26, 2006 Thanks. I know it was kind of stupid question, so thanks for not flaming me. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 26, 2006 Share Posted April 26, 2006 It's also used in the [a href=\"http://www.php.net/manual/en/control-structures.foreach.php\" target=\"_blank\"]foreach()[/a]. See the manual for more information.Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.