Jump to content

find word


StirCrazy

Recommended Posts

Hi there,

 

I've used stripos to find the position of part a word. How would I find the full word?

 

EXAMPLE:

 

$string = "this is message text  text  text  text  text  text  text  text  text  text  text";

 

the full word at character position 10 is "message".

 

How word I put that full word ("message") in a variable (for use later)?

 

 

Thanks in advance.

 

:)

Link to comment
https://forums.phpfreaks.com/topic/95506-find-word/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.