Character check in string
| From: | Prodoc | Date: | Mon, 20 May 2002 16:59:34 +0000 |
| Subject: | Character check in string | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-19283@lists.php.net to get a copy of this message | ||
Is there a php function to check if a string contains a certain kind of character and is there a function to split up a string?
e.g.
$data = "13_45"
I want to check if variable $data contains the character "_".
If that's the case I want to split the variable (array or seperate variables) so I've got a variable containing "13" and one containing "45".