';or something like that, it seems like this will cause a parsing error ...">

What does it do?

I have never seen $ret = N.T.T.T.T.'<div id="toptabs">';or something like that, it seems like this will cause a parsing error ... can anyone explain why this is not so?

public function renderTabs() {
    if(empty($this->currentTabs)) {
        return '';
    }

    $ret = N.T.T.T.T.'<div id="toptabs">';
    if(!empty($this->currentTabs['left'])) {
        $ret .= $this->doTabs($this->currentTabs['left'], 'left');
    }
    if(!empty($this->currentTabs['right'])) {
        $ret .= $this->doTabs($this->currentTabs['right'], 'right');
    }
    $ret .= N.T.T.T.T.'</div>';

    return $ret;
}
+3
source share
12 answers

Nand Tlooks like constants
and .concatenation

From the names and uses, I can assume that Nrepresents a newline and Ttab.

You have never seen it, as it is a rather strange way to write such things.

$ret = "\n\t\t\t\t<div id='toptabs'>";

or simply

$ret = "
                <div id='toptabs'>";

looks more familiar

In any case, all this formatting should not be used at all, since all output should be processed by a template that allows you to write formatting such as

+3

, , -, .

define("T", "\t");
define("N", "\r\n");
+3

define -, :

define('T', "\t");
define('N', "\n");

, T - , N - .

+2

N T , (, , , ). , .

+2

, N (,
) T (, 4 , 4x &nbsp;)

, . - PHP.

+2
+2
+1

N T, , .

PHP , , "N" "T", . ( E_NOTICE .)

echo constant("N"); , .

+1

N T, , , . , .

+1

, N T, - script. - :

define ( "N", $somevalue); define ( "T", $somevalue);

, script .

+1
source

You need to define the constants N and T somewhere before this code.

+1
source

All Articles