[snip]
what does the semicolon and the question mark do?
[/snip]
http://www.php.net/operators.comparison
look at the ternary operator
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
They confuse non-C programmers, mostly.
See this: http://www.php.net/operators.comparison
cheers,
Travis
Radek Zajkowski wrote:
Here's a code snippet
// call gui object method
$method = $cmd.Object;
$class_name = $objDefinition-getClassName($obj_type);
$module =
Radek Zajkowski mailto:[EMAIL PROTECTED]
on Monday, May 17, 2004 12:38 PM said:
$module_dir = ($module == )
?
: $module./;
what does the semicolon and the question mark do?
?php
if ($module == )
{
$module_dir = ;
}
else
{
$module_dir = $module./;
}
?
From: Radek Zajkowski [EMAIL PROTECTED]
$module_dir = ($module == )
?
: $module./;
what does the semicolon and the question mark do?
Ternary Operator: http://us2.php.net/operators.comparison
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Thu, Mar 13, 2003 at 05:56:40PM -0600, Tom Woody wrote:
On Fri, 14 Mar 2003 00:37:38 +0100
Michael Cronstrom [EMAIL PROTECTED] wrote:
I get the message:
Notice: Undefined variable: msg in
F:\www-root\domain.com\website\script.php on line 202
mate, this is not actually an error
On Fri, 14 Mar 2003 00:37:38 +0100
Michael Cronstrom [EMAIL PROTECTED] wrote:
I get the message:
Notice: Undefined variable: msg in
F:\www-root\domain.com\website\script.php on line 202
whats wrong?
Questions like this and you are asking for trouble... first off how are
we supposed to
Hey everybody,
I get the message:
Notice: Undefined variable: msg in
F:\www-root\domain.com\website\script.php on line 202
whats wrong?
I'm not very good at PHP, but I'd have to say the problem is that you've
got an undefined variable called $msg on line 202 in script.php... but I
At 20:39 13/3/2003 -0500, John W. Holmes wrote:
I'm not very good at PHP, but I'd have to say the problem is that you've
got an undefined variable called $msg on line 202 in script.php... but I
could be wrong.
LOL:-)
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
8 matches
Mail list logo