TakeWhile¶
TakeWhile ( callable $callback )
Returns input values while the callback function returns true, then all remaining values are ignored. The last value returned is the the one previous to the value for which the callback function returned false.