E Online Support - Free Software Download
how to split word by capital letter
I want to split a word by capital letter in PHP for example: $string = "facebookPageUrl"; I want it like this: $array = array("facebook","Page","Url");
Jitendra
Answer
1

SPLIT WORD BY CAPITAL LETTER
preg_split('/(?=\p{Lu})/u', $str)
Question*:
Description*:
Script:
Related To:
 PHP    HTML    CSS    JAVASCRIPT    JQUERY   
 AJAX    WINDOWS    GAMES    DRIVERS    MAC   
 LINUX    MOBILE    GADGETS   
Security Code:
8806
Enter Security Code:
 
Facebook   Linkedin   Skype   Twitter