English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What does these symbol means?

=>

It is used in the arrays

it is not like
>= Because these means equal or more

2006-07-18 14:59:08 · 2 answers · asked by alenm8816 4 in Computers & Internet Programming & Design

Here is an example


//I define my array

$food = array("fruit => array ("apple", "banana"), "Vegetables" => array ("carrot", "cucumber));

2006-07-18 15:07:17 · update #1

I think is to call an array inside an array

2006-07-18 15:07:54 · update #2

2 answers

it is used when setting the value of the arrays

$arr = array("somearray" => array(6 => 5, 13 => 9, "a" => 42));

http://us3.php.net/types.array

2006-07-18 15:04:07 · answer #1 · answered by Brady 3 · 1 0

I think of it as "points to" or "maps to".
It is used in key/value pairs
e.g: key=>value

You can then access the array using the key and you get the value back.

2006-07-19 01:48:24 · answer #2 · answered by aaron_ds 2 · 0 0

fedest.com, questions and answers