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