public function getParamTokens(array $params)
    {
        foreach ($params as $k => $p) {
            if (is_array($p)) {
                $params[$k] = isset($p[2]) ? $p[2] : 0;
            }
        }

        return $params;
    }
public function getParamTokens(array $params)
    {
        foreach ($params as $k => $p) {
            if (is_array($p)) {
                $params[$k] = isset($p[2]) ? $p[2] : 0;
            }
        }

        return $params;
    }
public function getParamTokens ( array $ params ) { foreach ( $ params as $ k => $ p ) { if ( is_array ( $ p ) ) { $ params [ $ k ] = isset ( $ p [ 2 ] ) ? $ p [ 2 ] : 0 ; } } return $ params ; }
Returns the token of each parameter out of the given parameter array.

@param array $params parameter array

@return array tokens
Returns the token of each parameter out of the given parameter array .