Generator::keyGet the yielded key Description
public mixed Generator::key()
Gets the key of the yielded value. ParametersThis function has no parameters. Return ValuesReturns the yielded key. Examples
Example #1 Generator::key example
The above example will output: key => value |