You are here

public function QPTPL::isAssoc in QueryPath 6

Same name and namespace in other branches
  1. 7.3 QueryPath/Extension/QPTPL.php \QPTPL::isAssoc()
  2. 7.2 QueryPath/Extension/QPTPL.php \QPTPL::isAssoc()
1 call to QPTPL::isAssoc()
QPTPL::tplArrayR in QueryPath/Extension/QPTPL.php

File

QueryPath/Extension/QPTPL.php, line 118

Class

QPTPL

Code

public function isAssoc($array) {
  $i = 0;
  foreach ($array as $k => $v) {
    if ($k !== $i++) {
      return TRUE;
    }
  }
  return FALSE;
}