Page 1 of 1
what is => is php
Posted: Fri Sep 28, 2007 5:17 am
by walex
I've seen => in php in a few places and cant figure out what it means. Any help?
Posted: Fri Sep 28, 2007 5:20 am
by impulse()
Greater or equal to.
Code: Select all
$a = $b = 10;
if($a >=$b)
echo "A is either greater or equal to B";
I've always used >=. Didn't realise => worked.
Posted: Fri Sep 28, 2007 5:29 am
by walex
I dont think thats right, whenever I've seen it its never been in a compare statement.
Posted: Fri Sep 28, 2007 5:47 am
by Hemlata
Hello,
Please give some example code where you find this kind of code. This will help others to solve your issue.
Regards,
Posted: Fri Sep 28, 2007 5:59 am
by walex
Here is an example of its use
Code: Select all
static $areas = array(
'reviews' => 'Restaurant Reviews'
);
Must be something to do with arrays...???
Posted: Fri Sep 28, 2007 6:05 am
by Hemlata
Hello,
Yes, the syntax is related with the array. Check the following url to learn more about it.
http://in.php.net/manual/en/function.array.php
Regrads,
Posted: Fri Sep 28, 2007 6:20 am
by walex
cool, thanks