?=expression ?
?php echo expression; ?
On 4/8/06, Merlin [EMAIL PROTECTED] wrote:
Hi there,
I am somehow confused about the this command: ?=
What does the equetion sigh mean?
I would like to replace the ?= sign inside this line:
?= $ajax-loadJsApp(true) ?
so I could do
?= $arse; ?
...is a concise, if less readable way, to echo the value of arse. It is only
used to echo a value. To do anything else, for example, call a method, use
the second approach you describe. In fact, you already seem to know the
difference, so why the question? Are you trying to replace
= is greater or equal to
-Erin
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006 9:13 PM
To: php-general@lists.php.net
Subject: [PHP] what does this mean? (PHP 4 = 4.0.1, PHP 5)
I'm trying to understand function definitions and can't seem
So it means the function was introduced in version 4.01?
Erin Fortenberry [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
= is greater or equal to
-Erin
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006 9:13 PM
To:
Pretty much
Chris wrote:
So it means the function was introduced in version 4.01?
Erin Fortenberry [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
= is greater or equal to
-Erin
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, January 09, 2006
Leif Gregory wrote:
Hello Diana,
Friday, February 25, 2005, 7:07:29 AM, you wrote:
D on which page of php.net can I find out what this code does?
D $a = $b? $a :dian;
It's called a ternary operator, basically an if-else statement.
Note to self: write ternary on the blackboard 100
Diana Castillo wrote:
on which page of php.net can I find out what this code does?
$a = $b? $a :dian;
its a form of if statement called the tertiary form (or something),
it does exactly the same as this:
if ($b) {
$a = $a;
} else {
$a = dian;
}
don't know which page its on tho
Hello Diana,
Friday, February 25, 2005, 7:07:29 AM, you wrote:
D on which page of php.net can I find out what this code does?
D $a = $b? $a :dian;
It's called a ternary operator, basically an if-else statement.
There really isn't a page (that I've found) that explains in on
php.net, but
[snip]
on which page of php.net can I find out what this code does?
$a = $b? $a :dian;
[/snip]
It is a ternary IF statement...verbose
if ($a = $b){
$a;
} else {
dian;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Barnett wrote:
Leif Gregory wrote:
Hello Diana,
Friday, February 25, 2005, 7:07:29 AM, you wrote:
D on which page of php.net can I find out what this code does?
D $a = $b? $a :dian;
It's called a ternary operator, basically an if-else statement.
Note to self: write ternary on the
Including more than one you can make a complex control structure, not
just if else
$a = ($a == 0) ? ($b $a ) ? $b : $a :$c;
On Fri, 25 Feb 2005 13:26:51 -0600, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
on which page of php.net can I find out what this code does?
$a = $b? $a :dian;
Jochem Maas mailto:[EMAIL PROTECTED]
on Friday, February 25, 2005 12:31 PM said:
I thought 'tertiary' also - I could remember the 'other' name...
I was under the impression that both names were valid..
anyone know if this is true? google brings up relevant hits for
both, from what I
Hello Jason,
Friday, February 25, 2005, 12:42:30 PM, you wrote:
J Note to self: write ternary on the blackboard 100 times.
You're telling me. I knew what it was but it took me like five minutes
to remember what it was called! grin
--
Leif (TB lists moderator and fellow end user).
Using The
The () operator means 'cast into' so
(boolean)$bool means cast this into a booolean.
Harry Wiens wrote:
$this-styles['shadow'] = (boolean)$bool;
what does (boolean)$bool mean?
mfg.
harry wiens
--
Raditha Dissanayake.
Hello Harry,
Wednesday, March 10, 2004, 12:55:44 PM, you wrote:
$this-styles['shadow'] = (boolean)$bool;
HW what does (boolean)$bool mean?
It's casting the value ($bool) to a boolean (i.e. TRUE or FALSE).
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html
--
PHP
That's a boolean casting; used for forcing a variable to become
boolean... Hope it helps...
Harry Wiens wrote:
$this-styles['shadow'] = (boolean)$bool;
what does (boolean)$bool mean?
mfg.
harry wiens
--
Miguel J. Jiménez
ISOTROL, S.A.
On 17 May 2002 at 12:23, Jeff Field wrote:
$theValue = ($theValue != ) ? ' . $theValue . ' : NULL;
It's a shortened version of the if...else construct. As in...
condition ? this_if_true : this_if_false
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, May 17, 2002 at 12:23:45PM -0500, Jeff Field wrote:
I'm stumped by the
exact meaning in the following function of what the question mark's (?)
and colon's (:), mean and do?
That's the ternary comparison operator. See
http://www.php.net/manual/en/language.operators.comparison.php,
The ? in this senario is called the ternary operator
basically shorthand for an if/else statement e.g
$theValue = ($theValue != ) ? ' . $theValue . ' :NULL;
is the equivalent of
if($theValue != ) {
$theValue =$theValue ;
}
else{
$theValue =NULL;
}
- Original Message -
From: Jeff Field
On Mon, 18 Mar 2002, Dan Vande More wrote:
What does the pl mean in 4.0.4-pl1
And 4.0.3 pl1?
And 4.0.1-pl2 and so on and so forth?
Patch level.
Like a minor version.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks miguel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 5:14 PM
To: Dan Vande More
Cc: PHP-GENERAL
Subject: Re: [PHP] What does PL mean?
On Mon, 18 Mar 2002, Dan Vande More wrote:
What does the pl mean in 4.0.4-pl1
And 4.0.3
Thanks, you guys rock! :)
Girish
- Original Message -
From: Roberto Ramírez [EMAIL PROTECTED]
To: Girish Nath [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 4:10 PM
Subject: RE: [PHP] What does var mean ?
The use of the means that its passed by reference.
That its equal
Bas Jobsen wrote:
What does the (ampersand) before the variable name mean ?
a pointer to the address (mem) of the variable
PHP doesn't have pointers and memory can't be directly accessed this way
like you can in C, or C++ or whatever. The ampersand is for passing values
via reference
Ouupppss!!
You're right !!!
- Original Message -
From: J Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 22, 2001 6:43 PM
Subject: Re: [PHP] What does var mean ?
Bas Jobsen wrote:
What does the (ampersand) before the variable name mean ?
a pointer
What does the (ampersand) before the variable name mean ?
It's called a reference, check out:
http://www.php.net/manual/en/language.references.php
regards,
Philip Olson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
-Original Message-
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 3:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] what does this mean?
Warning: Cannot use a scalar value as an array
what does that mean?
i have in my code this:
$errorMsg[error] =
As far as I know, you've defined $errorMsg previously
as an variable, not as an array. If you'll not use
anymore the previously defined $errorMsg just unset the
variable using unset($errorMsg) before the
attribution.
I hope this solves your problem, it solved a lot of
similar errors to me!
I am not very sure of what exactly does this this mean but I guess that the
particular module that you are installing requires a cversion of PHP that
has to be greater than 3.0.8.
This is just a guess. I aplogize if it's wrong.
regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
28 matches
Mail list logo