質問

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