IS_FINITE(3) 1 IS_FINITE(3)is_finite - Finds whether a value is a legal finite numberSYNOPSIS
bool is_finite (float $val)
DESCRIPTION
Checks whether $val is a legal finite on this platform.
PARAMETERS
o $val
- The value to check
RETURN VALUES
TRUE if $val is a legal finite number within the allowed range for a PHP float on this platform, else FALSE.
SEE ALSO is_infinite(3), is_nan(3).
PHP Documentation Group IS_FINITE(3)
Check Out this Related Man Page
IS_FLOAT(3) 1 IS_FLOAT(3)is_float - Finds whether the type of a variable is floatSYNOPSIS
bool is_float (mixed $var)
DESCRIPTION
Finds whether the type of the given variable is float.
Note
To test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric(3).
PARAMETERS
o $var
- The variable being evaluated.
RETURN VALUES
Returns TRUE if $var is a float, FALSE otherwise.
EXAMPLES
Example #1
is_float(3) example
<?php
if (is_float(27.25)) {
echo "is float
";
} else {
echo "is not float
";
}
var_dump(is_float('abc'));
var_dump(is_float(23));
var_dump(is_float(23.5));
var_dump(is_float(1e7)); //Scientific Notation
var_dump(is_float(true));
?>
The above example will output:
is float
bool(false)
bool(false)
bool(true)
bool(true)
bool(false)
SEE ALSO is_bool(3), is_int(3), is_numeric(3), is_string(3), is_array(3), is_object(3).
PHP Documentation Group IS_FLOAT(3)
I'm calling a program with a command line arguement containing a password. while the process is running anyone on the system can ps -ef and see the password. Is there a way to prevent this from happening.
example
PROGRAM USERNAME/PASSWD
I've also tried
PROGRAM `cat passfile`
... (7 Replies)
Check this site out... if you haven't already, that is.
What they say sound like well reasoned arguments, but I don't agree with them (that may be due to the way I (we?) have been brought up, I don't know).
What do you guys think? (4 Replies)
I am working on AIX. We ftp files to a database. The flat files are having thousands of records and each record is having some 50 to 60 characters(there are fields having certain character length). In addition to some valid ascii characters some invalid characters like Å, å, Ä, ä or pipes creep in which... (15 Replies)
hi
what is the difference between file and data? if file is unlimited, does that mean we can have a file as big as we like?
thanks.
file(blocks) unlimited
data(kbytes) 1048576 (6 Replies)
Hello scripting geeks,
I am new to scripting and facing some issues in writing the logic of the script. Request your kind help here
Actually when i run a command i get o/p as below
o/p :
0x0000
0x0000
0x0000
0x0000
0x0000
0x0000
these are hex values i guess...now i want to... (15 Replies)