RE: [PHP] Char check

2003-03-12 Thread Boaz Yahav
Maybe this can help

Check int / integer - checking if a variable is an integer or not. The
php is_int() function does not check if the string value is integer or
not.
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1705

How to check if a string has only specific characters? 
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1328


Sincerely

berber

Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.


-Original Message-
From: Fredrik [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 13, 2003 2:39 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Char check


Hi

I want to check if  $var is a char or an int.

Freddy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Char check

2003-03-12 Thread Pete James
Try is_numeric()?

Boaz Yahav wrote:
 
 Maybe this can help
 
 Check int / integer - checking if a variable is an integer or not. The
 php is_int() function does not check if the string value is integer or
 not.
 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1705
 
 How to check if a string has only specific characters?
 http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1328
 
 Sincerely
 
 berber
 
 Visit http://www.weberdev.com/ Today!!!
 To see where PHP might take you tomorrow.
 
 -Original Message-
 From: Fredrik [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 13, 2003 2:39 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Char check
 
 Hi
 
 I want to check if  $var is a char or an int.
 
 Freddy
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Char check

2003-02-13 Thread Jason Wong
On Thursday 13 February 2003 20:38, Fredrik wrote:

 I want to check if  $var is a char or an int.

manual  Variable Functions

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Two peanuts were walking through the New York.  One was assaulted.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php