fetchAllKeyed is a method in XenForo_Model!
<?php
class AVForums_ScanTokens_ControllerPublic_ScanTokens
{
public static function getScanToken(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
{
$visitor = XenForo_Visitor::getInstance()->toArray();
if (!$visitor['user_id']) {
print_r($visitor);
}
}
}
?>
return $html
{$html}
echo $html;
return array('html' => $html);
bool(false)what's var_dump($query_results) display?
if ($query_results)
http://www.copterlabs.com/blog/strict-vs-loose-comparisons-in-php/Yeah and doing if ($query_results) works fine, but that if (count($query_results) == 1) is true is really messed up.
Thanks Daniel?
Sort of. PHP has some weird.... we'll call them easter eggs....Yeah and doing if ($query_results) works fine, but that if (count($query_results) == 1) is true is really messed up.
Thanks Daniel?
<?php
$a[0] = 1;
$a[1] = 3;
$a[2] = 5;
$result = count($a);
// $result == 3
$b[0] = 7;
$b[5] = 9;
$b[10] = 11;
$result = count($b);
// $result == 3
$result = count(null);
// $result == 0
$result = count(false);
// $result == 1
?>
We use essential cookies to make this site work, and optional cookies to enhance your experience.