Jump to content

strtok HELP


robert_gsfame

Recommended Posts

Suppose i have this words

 

" I am one of members of PHPFreaks Forum " and i want to make this words into

 

" I am one of members of PHP..." Using strtok

 

then how to do it let say:

 

$words = "I am one of members of PHPFreaks Forum"

then how to break this words with using strtok..if i want to break based on space there i can do it like this

 

  strtok($words, " ");

 

But in this case words will be change to " ... " after reach strlen

 

Can anyone help me

 

Link to comment
https://forums.phpfreaks.com/topic/174966-strtok-help/
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.