V
V
Vasily Petrov2018-02-04 13:15:10
PHP
Vasily Petrov, 2018-02-04 13:15:10

How to specify in parameter => "greater than zero"?

There is something similar:

$args = array(
    'example' => БОЛЬШЕ НУЛЯ, 
    );

How to pass 'example' => GREATER THAN ZERO ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Ken Jee, 2018-02-04
@mbpig

Either specify '>0' in the text and then parse the string with a regular expression, or simply add the logical key 'bolshe' => 0 to your array and check (if the bolshe key exists, then add the condition 'greater than the given number'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question