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

help with database debug pls
Parse error: syntax error, unexpected T_ELSE in /home/content/m/e/s/mesick/html/students/05/php/chec

need help modifying script
Hi guys,

I'm fairly new to php and am having a bit of trouble modifying a script.

This

Setting condidtions for an input box
Hi all,

I would like to set a condition in a txt box that says the number a user enters has t

Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i

Help with simple query
Hi,

I'm trying to do a Query with a Union where I want to print the number of rows $tc conta

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

help removing unwanted graphic
How do I remove the small elongated rectangular shape between the "Latest post" and "

Why Are These Functions Causing MASSIVE Memory Problems? Please Help!
Hi,

I have a script with some options.

I use regex to replace patterns in strings, but

Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at th

losing variables between php brackets
Hi

have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mys

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