Skip to navigation
How to split a string only by letter by ignoring the numbers
25.02.14
example $result = preg_split('/(?=[A-Za-z])/', 'Z1a1b', -1, PREG_SPLIT_NO_EMPTY); will return array(3) { [0]=> string(2) "Z1" [1]=> string(2) "a1" [2]=> string(1) "b" }
http://php.net/manual/en/function.preg-split.php
Reply
Anonymous
Information Epoch 1732526512
Allow the user to tailor the environment.
Home
Notebook
Contact us