=> 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

Help with setcookie()
Merry Xmas to those on this foruum
Older guy here with some experience but not allot so please be

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

Do something every fifth time?
I'm trying to write a loop, but I want it to do something different after every fifth instance. Like

private constructor
Hello,

Can we create a constructor as private? If yes, what is the use of it? If no, why can'

Help with explandable category tree
I have the below query:

SELECT l1.id as lev1_id,l2.id as lev2_id,l3.id as lev3_id,l1.categ

License Issue - service type user
Hi,

I would like to understand the following issue regarding sap license.
I wish to

Calling variables
I want to call this to my website but it doesn't display what I want it to,

Code: <h5&

Agency Business Process
Hi,

I don’t understand the process of the agency business in SAP.

In my

Points for Wiki contribution
Hi everyone,

I want to know how long does it take for the moderator to award points for a

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages 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