$n) { if (preg_match('/^MYSQLI_TYPE_(.*)/', $c, $m)) { static::$mysqli_types[$n] = $m[1]; } } } return static::$mysqli_types; } /** * * @return array: */ public static function get_mysqli_flags() { if (!isset(static::$mysqli_flags)) { static::$mysqli_flags = array(); $constants = get_defined_constants(true); foreach ($constants['mysqli'] as $c => $n) { if (preg_match('/MYSQLI_(.*)_FLAG$/', $c, $m)) { if (!array_key_exists($n, static::$mysqli_flags)) { static::$mysqli_flags[$n] = strtolower(str_replace('PRI_KEY','PRIMARY_KEY',$m[1])); } } } } return static::$mysqli_flags; } } # fin de définition de la classe pmb_mysqli