Cheetah
xmlrpc
lib
compat
is_scalar.php
Go to the documentation of this file.
1
<?
php
2
8
// +----------------------------------------------------------------------+
9
// | PHP Version 4 |
10
// +----------------------------------------------------------------------+
11
// | Copyright (c) 1997-2004 The PHP Group |
12
// +----------------------------------------------------------------------+
13
// | This source file is subject to version 3.0 of the PHP license, |
14
// | that is bundled with this package in the file LICENSE, and is |
15
// | available at through the world-wide-web at |
16
// | http://www.php.net/license/3_0.txt. |
17
// | If you did not receive a copy of the PHP license and are unable to |
18
// | obtain it through the world-wide-web, please send a note to |
19
// | license@php.net so we can mail you a copy immediately. |
20
// +----------------------------------------------------------------------+
21
//
22
// $Id: is_scalar.php,v 1.2 2005/11/21 10:57:23 ggiunta Exp $
23
24
36
if
(!function_exists(
'is_scalar'
)) {
37
function
is_scalar($val)
38
{
39
// Check input
40
return
(is_bool($val) || is_int($val) || is_float($val) || is_string($val));
41
}
42
}
43
44
?>
php
Generated by
1.8.20