Php dizeden tek numara veya karakter kesmek için herhangi bir yolu

0 Cevap

Herkes nasıl php dizeden tek numara veya karakter kesebilir biliyor mu?

Example

$test = '12b';

any way that I can only cut the number from the variable: 12? also and way that I can only cut out the char: b?

NOT: Değiştirilen esnek $ sınama dizesi .. o ', '1 a' '123b ile gelebilir demektir ...

0 Cevap