|
Posted by Ivαn Sαnchez Ortega on 12/28/07 14:09
jodleren wrote:
> Hi!
>
> I was reading php.net for a way to find a number of characters in a
> strings. Say I want to look for a b and c ind $string.
> As far as I could see, there is no function for that.
preg_match("[abc]",$subject);
You might find reading something on regular expressions useful.
Cheers,
--
----------------------------------
IvΓ‘n SΓ‘nchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
Proudly running Debian Linux with 2.6.22-3-amd64 kernel, KDE 3.5.8, and PHP
5.2.4-2 generating this signature.
Uptime: 14:37:42 up 36 days, 53 min, 4 users, load average: 0.40, 0.81,
0.94
Navigation:
[Reply to this message]
|