Documentation

numeric.php

This file is part of the Parsica library.

Copyright (c) 2020 Mathias Verraes mathias@verraes.net

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Table of Contents

Functions

integer()  : Parser
Parse an integer and return it as a string. Use ->map('intval') or similar to cast it to a numeric type.
float()  : Parser
Parse a float and return it as a string. Use ->map('floatval') or similar to cast it to a numeric type.

Functions

integer()

Parse an integer and return it as a string. Use ->map('intval') or similar to cast it to a numeric type.

integer() : Parser

Example: "-123"

Tags
psalm-return

Parser

psalm-pure
Return values
Parser

float()

Parse a float and return it as a string. Use ->map('floatval') or similar to cast it to a numeric type.

float() : Parser

Example: -123.456E-789

Tags
psalm-return

Parser

psalm-suppress

InvalidReturnType

psalm-suppress

InvalidReturnStatement

psalm-pure
Return values
Parser

        
On this page

Search results