Вопрос

while ( is_numeric( $flyer{$idPos} )) {
    //some code
}

What does $flyer{$idPos} mean assuming both are variables?

Это было полезно?

Решение

This is an alternative, not recommendable syntax for accessing array entries:

$flyer{$idPos} === $flyer[$idPos]

Другие советы

Curly braces are a way to access a specific character of a string

$str = 'Bob';
echo $str{0}; // outputs B
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top