For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > August 2006 > echo with question mark









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author echo with question mark
news.tpi.pl

2006-08-26, 6:57 pm

Hi!

What does it mean:

<?php echo (isset($_POST['work_hours_total']) ? $_POST['work_hours_total'] :
""); ?>

I don't understand logic of that expression. Anybody can help me?

Leszek



Andy Hassall

2006-08-26, 6:57 pm

On Sat, 26 Aug 2006 19:34:41 +0200, "news.tpi.pl" <admin@seldom.eu> wrote:

>What does it mean:
>
><?php echo (isset($_POST['work_hours_total']) ? $_POST['work_hours_total'] :
>""); ?>
>
>I don't understand logic of that expression. Anybody can help me?


http://www.php.net/manual/en/langua...parison.ternary

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
leen

2006-08-27, 9:57 pm


try diz website>>> www.tizag.com

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com