=> and <=


Posted on 16th Feb 2014 07:03 pm by admin

So I was digging through some code when I came across the <= operator. This is the first time I've ever seen it. I felt the same way I did when I first saw a ternary statement.

What is it's purpose. I want to say it's a reverse assignment operator but that just make entirely no sense.

Did you know?Explore Trending and Topic pages for more stories like this.
Just for the clueless ones reading I'll elaborate with code
Code: $someArray = array (
'keyOne' => "the value",
'keyTwo' => "the value" <= "something else", /// What in the world is going on here?
);
or this
Code: foreach ($array as $key=> $value )
while ($key <= $blah ) { /// <---------- huh?
$blah -= $key;
$str.= $value;
}
No comments posted yet

Your Answer:

Login to answer
73 Like 35 Dislike
Previous forums Next forums
Other forums

generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

Having a problem get the selected item from a drop down menu
I have been looking at this for days now.

I have a drop down menu that get it's values from a

PHP switch function help
Hi, I am trying to create a search function for a directory website. On the search function on html

Putting double spaces instead of single spaces
Im looking at trying to replace all single spacing between fields with double spacing

At pres

pls clear my confusion
Hi friends,

Pls solve my query .

what is the exact use of Scope Resolution Operator( i

PHP FTP connect doesn't work with correct login
Hi!

i am working on this test code:
Quote<?php

$ftp_ser

creating a 1 to 100 in a table
hi guys I am a newb in php need some help.

I have a table with 1 column and 100 rows and in

getAlexaRank($url) function not working
I have made a function to get alexa rank
the site is here: http://mytestsite.rack111.com/1

Return X values where an ID number doesnt matter
Well as for subject heading, thats the best i could think of.

Currently im having a problem w

ScriptResource.axd gives an error on fresh install of ASP.NET Ajax 1.0
Hello,I have a fresh install of Microsoft ASP.NET Ajax 1.0. When I create an Ajax enabled website in

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash