Jump to content

get only part data


jaronblake

Recommended Posts

It depends on how you want to do it... by words or characters or what. You can use substr($row['mytext'],0,30) to get the first 30 characters, or modify to however you want it.

If you want to do it by word count (not as repeatable and extremely variable across stories), do a search on this board as this has been done a hundred times.
Link to comment
https://forums.phpfreaks.com/topic/11347-get-only-part-data/#findComment-42500
Share on other sites

[!--quoteo(post=380711:date=Jun 6 2006, 12:21 PM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Jun 6 2006, 12:21 PM) [snapback]380711[/snapback][/div][div class=\'quotemain\'][!--quotec--]
substr($row['whatever'],0,strpos($row['whatever'], '(');
[/quote]

Thanks you have been a big help
Link to comment
https://forums.phpfreaks.com/topic/11347-get-only-part-data/#findComment-42524
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.