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

Request.UrlReferrer
I need to make it so that a page can only be loaded when a button is clicked on a specific page. I d

How to update this array?
I am saving a string that looks this: username1, username2, username3...
into a single cell in a

Working with popups and such in a class
I've recently started building my applications completely enclosed in classes. I like the fact that

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

iMatch stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

Problem related to Creation of PDF File?
Hi All,
I am facing a problem related to creation pdf file. when I am creating a pdf file of do

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

LOOPing Problem
Hello All!

The following code loops through the data and displays the data accordingly. My p

Generate PDF
Hi guys,

I would like to know if there is a way to generate pdf when clicking on a link. In f

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