00001 <?php 00002 // +----------------------------------------------------------------------+ 00003 // | PHP Version 4 | 00004 // +----------------------------------------------------------------------+ 00005 // | Copyright (c) 1997-2004 The PHP Group | 00006 // +----------------------------------------------------------------------+ 00007 // | This source file is subject to version 3.0 of the PHP license, | 00008 // | that is bundled with this package in the file LICENSE, and is | 00009 // | available at through the world-wide-web at | 00010 // | http://www.php.net/license/3_0.txt. | 00011 // | If you did not receive a copy of the PHP license and are unable to | 00012 // | obtain it through the world-wide-web, please send a note to | 00013 // | license@php.net so we can mail you a copy immediately. | 00014 // +----------------------------------------------------------------------+ 00015 // 00016 // $Id: is_scalar.php 2 2009-03-16 20:22:51Z ggiunta $ 00017 00018 00030 if (!function_exists('is_scalar')) { 00031 function is_scalar($val) 00032 { 00033 // Check input 00034 return (is_bool($val) || is_int($val) || is_float($val) || is_string($val)); 00035 } 00036 } 00037 00038 ?>
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|