PHP Question
I've seen this in the NSS Forum.
Code:
$sticky = ($_POST['sticky'])?1:0; Code:
()?1:0; Is that like? Code:
1 || 0 Also, do you know where I can download a PHP book? |
Re: PHP Question
"a ? b : c" means "if a is true then the value is b, otherwise the value is c".
for a PHP book, search for "bruce perens open source series" in Google and I'm sure you can find a pretty good one. |
Re: PHP Question
Thanks.
I guess in lamens terms it's a mini if/else. I got O`rileys book. TY for the help. |
All times are GMT +2. The time now is 00:19. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.