uploading multiple files to different folders |
[eluser]xwero[/eluser]
It's called Ternary Operator. In short it's a compressed if else structure where you have the condition is followed by a question mark with the values behind the question mark separated by a colon. The biggest benefit is that you don't have to rewrite the variable where you assign the values too. I always use following structure; $variable = condition ? true value : false value; |
Messages In This Thread |
uploading multiple files to different folders - by El Forum - 11-29-2007, 03:35 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 03:48 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 03:53 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 04:02 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 04:18 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 04:38 AM
uploading multiple files to different folders - by El Forum - 11-29-2007, 02:05 PM
|