I have the following code:
Code: Select all
if(Class::function())Code: Select all
$renamed = rename($tmp_filename, $dest_filenames[0]);
if (!$renamed) {
return false;
}Here's another problem I have been having:
Code: Select all
$page = thisfunction($thisvariable, '', $thisvariable->getId() ? $frm : null);
1. How is the syntax actually being evaluated? thisfunction((var1, var2) ? var 3 : null). I mean, what does the "?" and the ":" stand for? I am guessing it's something like, if (var1, var2) is true, then use it, otherwise use var 3 if it's false. If it cannot be evaluated to "true" or "false", use "null" instead. Am I correct?
2. I've checked the function "thisfunction" and it returns some sort of string in that's like a code in PHP. the problem is, I checked inside the function and the string was very long. When I run the debugger, the value in $page gets truncated. How can I resolve this?
Thanks in advance.