would you rather do
<?php
if ($var==$var){echo $var;}
?>
or
<?php
($var==$var)?echo $var;
?>
would you rather do
<?php
if ($var==$var){echo $var;}
?>
or
<?php
($var==$var)?echo $var;
?>
I tend to always use the traditional if statement rather than using the ternary operator, not sure why - just always done it like that.
I would use the former.
ex-hxl manager
ex-event organizer
ex-gfx designer
ex-competition staff
ex-content staff
OFWGK†Δ
Hm, try this!
<?php
$var=67787;
echo $var;
?>
-------------------------------------------------+
I might not be giving you what you're looking for, because your script kinda confused me a bit. Lol! But if you're just trying to echo a variable, I've projected the right formula for you! http://w3schools.com
Last edited by zCode; 15-04-2011 at 12:58 AM.
Was this a joke? LOL.Hm, try this!
<?php
$var=67787;
echo $var;
?>
-------------------------------------------------+
I might not be giving you what you're looking for, because your script kinda confused me a bit. Lol! But if you're just trying to echo a variable, I've projected the right formula for you! http://w3schools.com
woa.. urm i dont think that anything related..
GOOD LUCK!
Edited by Illuminite (Trialist Forum Moderator):
Please do not post pointlessly.
Last edited by Tom; 17-04-2011 at 01:21 PM.
That's stupid. 1 is an integer not a string.
Unless it's a string in which case it is a string!
visit my internet web site on the internet
http://dong.engineer/
it is just videos by bill wurtz videos you have been warned
Want to hide these adverts? Register an account for free!