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

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

PHP Code To Change Font Color in Table Cell
I would appreciate help with the following snippet of my php code. I am just trying to change the f

C++ API to Oracle dB
I need to perform a select command to the Oracle dB to obtain information from a table.
What libr

Concatenate two strings ???
I have string one $string1 and another $string2.

How to concatenate (add) both of them $str

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

getting weird error..
okay, I'm getting an error on this particular function, something about the syntax in the mysql LIMI

noob question
i traying to do a php form with auto replay for both(me and the user who send me a mail),

a u

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

phph within href not showing php if change ? to &
Code: [Select]<a href="<?php echo $puser; ?>?m=<?php=(($m-1)&l

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