I have a string which is combination of letters and digits. For my application i have to separate a string with letters and digits: ex:If my string is "12jan" i hav to get "12" "jan" separately..
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- how to split a list into a given number of sub-lis
- Can php detect if javascript is on or not?
Try This :
This works for me as per my requirement, you can edit as per yours
Having worked more with PHPExcel, such operations are common. #Tapase,. Here is a preg_split that gets you want you want with space within the string.
You can add a comma next to the s for comma seperated. Hope it helps someone. Anton K.
this might work alot better