2 Topics

Member Avatar for
Member Avatar for LastMitch

Hi I'm bit stuck on how to put a period in array. This is my example: <pre> <?php $str = 'I like to eat Strawberry Cheesecake.'; $words = preg_split('@([\W]+)@', $str); var_dump($words); ?> </pre> This is how it's `var_dump()`: array(7) { [0]=> string(1) "I" [1]=> string(4) "like" [2]=> string(2) "to" [3]=> …

Member Avatar for LastMitch
0
250
Member Avatar for andyy121

hi everybody i just need to know what is the function of preg_split and that which is inside of brackets: $keywords = preg_split ('/[\s]+/',$keywords);

Member Avatar for andyy121
0
155

The End.