what is => is php
Moderator: General Moderators
what is => is php
I've seen => in php in a few places and cant figure out what it means. Any help?
-
impulse()
- Forum Regular
- Posts: 748
- Joined: Wed Aug 09, 2006 8:36 am
- Location: Staffordshire, UK
- Contact:
Greater or equal to.
I've always used >=. Didn't realise => worked.
Code: Select all
$a = $b = 10;
if($a >=$b)
echo "A is either greater or equal to B";
Here is an example of its use
Must be something to do with arrays...???
Code: Select all
static $areas = array(
'reviews' => 'Restaurant Reviews'
);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,
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,