S
S
Sergey2016-05-28 04:39:52
PHP
Sergey, 2016-05-28 04:39:52

What kind of miracles happen in if in php?

I'm in aha. The code:

function tvcap($tvname) {
    global $modx;
    if ($tvname == 0) {
        return 'Err. tvname=' . $tvname;
    }
    $tv = $modx->getObject('modTemplateVar', array('name' => $tvname));
    return $tv->get('caption');
}

Conclusion
Err. tvname=tv_fistashka

How so?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xmoonlight, 2016-05-28
@r3l0c

===
or
php.net/manual/en/language.operators.comparison.php
php.net/manual/en/types.comparisons.php I
strongly advise you to read, understand and learn everything on the link!

E
expeerd, 2015-08-28
@expeerd

stackoverflow.com/questions/22457529/disable-fullp... this is about scrolling, and size - read about meta viewport .

0
0leg5ergeev, 2015-08-28
@0leg5ergeev

body{
min-width:1170px;
}
if I understand correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question