0

Find repeated words in a string using php?

8th Oct 2022, 11:38 AM
parajal12
parajal12 - avatar
4 Antworten
+ 2
You can use PHP’s substr_count() function to find out how many times a given substring appears or is repeated in a string. https://code.sololearn.com/wAAwZWpJPQg5/?ref=app
8th Oct 2022, 12:21 PM
Sreeju
Sreeju - avatar
+ 1
parajal12 pardon my very rusty php, but maybe this could help? https://code.sololearn.com/wPX5MUNE8x7C/?ref=app
9th Oct 2022, 11:00 PM
Bob_Li
Bob_Li - avatar
8th Oct 2022, 2:26 PM
parajal12
parajal12 - avatar
0
But what if we want to know ,which word in the string get repeated ?.𝗦𝗿𝗲𝗲𝗷𝘂
8th Oct 2022, 2:28 PM
parajal12
parajal12 - avatar